AI Agent Loop in Python: Build It From Scratch
AI agent loop in Python: Invoke the LLM, run any tool calls, send the results back, and repeat until finish_reason is stop, with a max_steps cap so it can't loop forever.
471 stories
AI agent loop in Python: Invoke the LLM, run any tool calls, send the results back, and repeat until finish_reason is stop, with a max_steps cap so it can't loop forever.
S5-nano is Maritaca AI's 4B Apache-2.0 vision-language model tuned for Portuguese. Specs, vendor-reported scores vs Qwen3.5-4B, caveats and who should care.
Tool-use hallucination lets agents report successful tool calls that never ran, sending bad parameters or inventing results while task metrics show green.
OpenCSG's 27B agent model targets tool selection and failure recovery, with single-A800 test results. Its license requires permission for commercial use.
JSON Schema for LLM tools: How an LLM learns your functions exist: name, description, parameters and required fields in a JSON schema, then bind_tools. Plus the naming mistake I see all the time.
LLM tool calling: stop means the LLM answered. tool_calls means it wants you to run a function. And giving an LLM tools doesn't mean it will always use them.
Set up DeepTutor with Ollama for a private, self-hosted AI tutor with quiz, solve, research, and visualize modes. No cloud required.
Run separate checks for chat, strict JSON, a full tool-call round trip, SSE completion and validation errors. Includes a Python probe and local failure tests.
November 5, 2026 — Inside Inkling 2 Small’s training run and METR’s study of AI research at Anthropic.
Async subagents let an orchestrator stay reachable while background workers run long tasks. What the orchestrator must keep about in-flight work so compaction cannot erase it, what a worker should hand back, when a follow-up should interrupt or enqueue, how results reach an orchestrator that is…
build an AI agent from scratch: The full tool-calling round trip in Python: read the tool call, run the function yourself, send the result back as a ToolMessage with the same ID, and get the final answer.
ReAct AI agents: Reason and act: the LLM decides, your code runs the tool, the result goes back to the LLM, and it repeats until it can answer. Plus why you must cap the number of tool calls.
ERNIE-5.5-Flash-Base API pricing explained: $0 download, no hosted endpoint, GPU math, license limits, and 24/30 best-in-field benchmark wins.
The UK labor market is splitting in two, and young workers are caught at the fault line. Employers are adding AI literacy requirements to entry-level postings at a pace that outstrips any public upskilling...
November 4, 2026 — OpenAI’s Linux kernel security work, Kimi K3.1 Pro’s open weights, and Ricursive’s Ripple-65B.
LLM tool calling in Python: Without tools, GPT can't tell you today's weather. Add one Python function as a tool and it calls it, gets live data and answers, for Hyderabad and then London.
AI agent tools: Same model, different result: my chatbot can't check the weather or search the web, ChatGPT can. The difference is tools, and taking actions is what makes it agentic.
Kimi K3.1 Pro specs explained: 2.8T MoE parameters, 104B active, 1M context, and how it benchmarks against Claude and GPT.
Showing 90 of 471 stories
Load more storiesGet the top AI news and tools straight to your inbox every week.
Weekly · AI news
Join 15,000+ AI enthusiasts