LangChain agent can’t see a tool
I use mistral-7b-instruct-v0.2.Q2_K.
@tool def create_new_specialist(text): '''Describe some specialist who you want.''' # some code global specialist specialist = # some code return 'Specialist was created successfully' tools = [create_new_specialist] def create_conversation(prompt): memory = SqliteSaver.from_conn_string(":memory:") conversation1 = create_react_agent(llm, tools, messages_modifier=prompt, checkpointer=memory) return conversation1 answer = conversation1.invoke({"messages": [("user", "Hello, create some specialist from prompt.")]}, config={'configurable':{'thread_id':1}})["messages"][-1].content