Tool Calling - meta/llama-4-scout-17b-16e-instruct

Hi, I am trying to use llama-4 for tool calling using OpenAI Agents SDK but it does not execute the code as meta/llama-3.3-70b-instruct. Implementing agents orchestration .

FINAL_OUTPUT:
<|python_start|>{“type”: “function”, “name”: “exec_python_code”, “parameters”: {“code”: “results = get_balances(exchange="binance", assets="BTC,ETH,SOL", blocking=True, inputs=input_vars)”}}<|python_end|>

SOMETIMES:
<|python_start|>{“name”: “transfer_to_python_tools_agent”, “parameters”: {}}<|python_end|>

Hi @stelgic,

At first glance, that output looks to be what we would expect.

Please can you share some sample code showing what was working on llama 3.3, and what is not working on llama 4?

That way we can dig into this better!

Thanks,

Sophie