py_agent
Search py_agent Ctrl+P
Open
Share
M Adding API system update to chatbot

Adding API system update to chatbot

What Was Fixed:

  1. 1. Tool parameters - Now properly formatted as JSON Schema with type: "object", properties, and required
  2. 2. Tool choice - Added tool_choice="auto" to encourage the model to use tools
  3. 3. Finish reason - Fixed mismatch ( tool_calls vs tool_use)
  4. 4. Tool execution - Agent now properly executes tools and returns results

Your NVIDIA AI Agent Now Has Full Tool Support:

  • ls - List directory contents
  • glob - Find files by pattern
  • view - Read files
  • edit - Edit files
  • write - Create files
  • grep - Search files
  • bash - Run commands

Test It Yourself:

python run_agent.py -p "List Python files"
python run_agent.py -p "Show me what's in config.py"
python run_agent.py -p "Find all TODO comments"
Your NVIDIA-powered AI agent with full tool support is ready! 🚀
Ask anything...
Qwen3.5-397B-A17B
main*
0
0
Ln 42, Col 7 UTF-8 Python Prettier