Replies: 1 comment 1 reply
-
Hey there, @chaima-bd! How can I assist you today? Hey @chaima-bd! It looks like you're asking about an error related to I'm a bot designed to help solve bugs, answer technical questions, and gather engineering knowledge. If you think I should have answered this request, you can reach out to the Dosu Team. Feel free to ask me anything else within my scope! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I am trying to create an agent using langChain and LangGraph but I get thies error message when i try to execute this part of code to print all messages
from langchain_core.messages import HumanMessage
inputs = {"messages": [HumanMessage(content="i want single llm and use and use Gemenie model ")]}
for chunk in app.stream(inputs, stream_mode="values"):
chunk["messages"][-1].pretty_print()
System Info
================================ Human Message =================================
i want single llm and use and use Gemenie model
:40: LangChainDeprecationWarning: The method
BaseTool.__call__
was deprecated in langchain-core 0.1.47 and will be removed in 1.0. Use :meth:~invoke
instead.result = create_model_configuration(state.M_Options, ai_llm_models)
WARNING:langchain_core.callbacks.manager:Error in str.on_tool_start callback: AttributeError("'str' object has no attribute 'ignore_agent'")
AttributeError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/langchain_core/callbacks/manager.py in handle_event(handlers, event_name, ignore_condition_name, *args, **kwargs)
260 try:
--> 261 if ignore_condition_name is None or not getattr(
262 handler, ignore_condition_name
AttributeError: 'str' object has no attribute 'ignore_agent'
During handling of the above exception, another exception occurred:
AttributeError Traceback (most recent call last)
13 frames
/usr/local/lib/python3.10/dist-packages/langchain_core/callbacks/manager.py in handle_event(handlers, event_name, ignore_condition_name, *args, **kwargs)
289 f" {repr(e)}"
290 )
--> 291 if handler.raise_error:
292 raise e
293 finally:
AttributeError: 'str' object has no attribute 'raise_error'
Beta Was this translation helpful? Give feedback.
All reactions