Tutorials Qwen3.8-Max Tool Calling: A Python Agent Loop
Build a working tool-calling agent on Alibaba's new Qwen3.8-Max using the OpenAI-compatible API.
How-to content for builders, indie hackers, and AI engineers. Less theory, more shipped code.
Tutorials Build a working tool-calling agent on Alibaba's new Qwen3.8-Max using the OpenAI-compatible API.
Tutorials Build a thinking-mode tool-calling agent on DeepSeek V4-Flash-0731 without the 400 error.
Tutorials Build an autonomous file-editing coding agent on DeepSeek V4-Flash's tool-calling API for pennies.
Tutorials Auto-recover from Claude safety refusals on Opus 5 with one line of code: fallbacks='default'.
Tutorials Force Claude to return schema-valid JSON every time, no parsing errors and no retries.
Tutorials Add or drop Claude Opus 5 tools between turns without invalidating your prompt cache.
Tutorials Route each task to the right Claude Opus 5 effort level and cut your token bill.
Tutorials Load tools just-in-time in Kimi K3's agent loop to shrink prompts and sharpen tool choice.
Tutorials kimi-k3 is not a drop-in swap. Map the params right and dodge the trap that breaks tool loops.
Tutorials Point the OpenAI SDK at Moonshot's 2.8T K3, load a whole repo, and cut cost with caching.
Tutorials Point the OpenAI SDK at Meta's agent model, add tools, let it self-manage a 1M-token context.
Tutorials Use reasoning.context to reuse GPT-5.6's chain of thought across turns and cut redundant tokens.