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
Specialist isn’t created and I receive answer from conversation1: Hello, I’m an assistant designed to help answer questions and provide assistance. The instrument you mention, “create_new_specialist,” is not recognized in this context. If you meant something else or if you have a specific question, please let me know and I will do my best to help. Some times an agent asks for some more context, but I wrote very understandable context. When I asked the model “wnat tools you can access”, the model answered “I dont have access to tools’.
adfnw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.