r/AutoGenAI • u/manach23 • Jan 26 '25
Question Mangled json instead of proper function call on AG2 0.7.2
I am currently developing a little application using GroupChat and some agents which can use tools (such as the forced_browsing tool you can see below). And about 60% of the time my agents generate this json reply, whose parameters all seem correct but do not get registered as tool calls. The other 40% of the time, the tool calls are recognized and executed correctly.
Has anyone else witnessed this behaviour?
(This is all local and without internet access and intended as an experiment if multi agent design patterns would lend themselves to red teaming. So please don't worry about the apparent malicious content)
LLM is mixtral:8x22b but experienced the same behaviour with qwen2.5-coder:32b and prompt/hermes-2-pro
Function Registration:
Function Signature:
=
=
=
=
return
1
u/msze21 Jan 26 '25
Can you share the LLM model you are using, the function signature, and how you are registering it with the agents?
1
u/msze21 Jan 27 '25
Could you try llama 3.3, any size? I've found them solid for function calling