AIStudio2API icon indicating copy to clipboard operation
AIStudio2API copied to clipboard

Just asking if you have plans to add native Function Calling Support for Build Chat (-build Models) soon if possible.

Open mondermurshed opened this issue 1 month ago • 7 comments

Hi!

Currently, Build Chat (-build models) does not support native function calling. Tool declarations are discarded, preventing coding agents like Codex CLI from reading/editing files, executing commands, and using MCP tools.

Could you add native function calling and tool-result continuation support for Build Chat, if the underlying protocol allows it?

Ideally, this would also enable automatic fallback from Playground to Build Chat when Playground quota is exhausted, while preserving the same model, conversation context, and coding-agent functionality.

This would be extremely useful for Google AI Pro subscribers who have separate Build Chat quotas.

Thanks!

mondermurshed avatar Oct 28 '26 19:10 mondermurshed

Anyhow, the protocol allows it—once proxied, it can be treated like a normal API. However, the system prompt injected upstream severely degrades the model's capabilities, especially for models weaker than argon. So: Yes, I will add support for this, but the performance is expected to be quite poor. It will likely be added in 0.2.18!

Mag1cFall avatar Oct 28 '26 19:10 Mag1cFall

  1. Anyhow, the protocol allows it—once proxied, it can be treated like a normal API. However, the system prompt injected upstream severely degrades the model's capabilities, especially for models weaker than argon. So: Yes, I will add support for this, but the performance is expected to be quite poor. It will likely be added in 0.2.18!

alr please do i would really like to have web search, thanks

olivertzeng avatar Oct 29 '26 03:10 olivertzeng

Can't wait for this!

mondermurshed avatar Oct 29 '26 18:10 mondermurshed

it's implemented in v0.2.18, and i only tested it in omp. opus5.5 helped me test it in codex and claude code, yet there must still be some problems, i'll keep optimizing this.

Mag1cFall avatar Oct 29 '26 22:10 Mag1cFall

Thanks for adding tool calling in v0.2.18!

I've been using Argon Build Chat with Codex CLI. It works, but I've noticed some issues during longer coding sessions.

Sometimes the agent keeps reading the same files over and over without making progress, then suddenly stops after 3–17 minutes. I also sometimes see raw function_calls and function_results in the output instead of the tools being executed.

Short tasks seem to work fine. Not sure if it's an issue with the model or the proxy, but thought I'd let you know.

Would be great if you could look into it. Thanks!

mondermurshed avatar Oct 30 '26 20:10 mondermurshed

5. Thanks for adding tool calling in v0.2.18! I've been using Argon Build Chat with Codex CLI. It works, but I've noticed some issues during longer coding sessions. Sometimes the agent keeps reading the same files over and over without making progress, then suddenly stops after 3–17 minutes. I also sometimes see raw function_calls and function_results in the output instead of the tools being executed. Short tasks seem to work fine. Not sure if it's an issue with the model or the proxy, but thought I'd let you know. Would be great if you could look into it. Thanks!

-build runs through AI Studio's Build agent, whose own ~20k-token system prompt and workspace tools conflict with Codex's tools and instructions, and even argon struggles with that (gemini is weak at long context and agentic work, and codex isn't tuned for non-GPT models), so i can only keep optimizing it on the proxy side. This is even worse than Mag1cFall/Gemini-Web2API, because the upstream tools are massive and the model keeps calling them by mistake instead of harness's. i'll strictly forbid those upstream tools in the appended prompt, which may help somewhat, but with argon(or all current gemini models?) such errors are unavoidable.

Mag1cFall avatar Oct 30 '26 22:10 Mag1cFall

Thanks for explaining! That makes sense. Playground quota runs out extremely fast, which is why I'm trying to use Build Chat for coding.

I understand the limitations. Hopefully the tool restrictions you're planning will improve things a bit. Thanks for working on it!

mondermurshed avatar Oct 30 '26 22:10 mondermurshed