yeah I inject messages to the chat for the game.
yes I parse actions manually sometimes depending on the action.
So i kind of took a look at the code and if i am not mistaken, are you not sending the tool list when using a local llm?
are you sending the tools as
messages=[{"role": "user", "content": "What is the weather like in Paris today?"}], tools=tools
or is the tools like this?
messages=[{"role": "user", "content": "What is the weather like in Paris today?", "role": "tools", "content":"{{tool_list}}"}]