liveBook · Manning

Agent workflow

As explained in Domain-Specific Small Language Models

A multi-step model-and-tool interaction pattern where the model chooses tools, receives results, and iterates toward a final answer.

Uses a language model as an active participant in a conversation: the model can call Python functions as tools, receive their results, and continue producing a response. section 12.7 section 12.4

A practical local workflow typically requires:

  • A running LM Studio API server with a loaded model. section 12.4

Calling a multiplication tool

A model can receive a question such as “What is the result of 123 multiplied by 456?” and use the supplied multiply function during its response.

How Domain-Specific Small Language Models covers it

How deep it goes
Demonstrates the SDK call and tool shape but stops short of detailing tool-selection or result-handling internals.
Examples
Uses a Python multiply function and a multiplication question as the concrete tool-use example.
What it assumes
Assumes Python familiarity and a locally running LM Studio server with a loaded language model.
What you can do after
Build it from scratch with LM Studio’s Python SDK by exposing functions and passing them to model.act.
How it connects
Connects local inference, Python SDKs, chat context, streaming responses, and tool calling.

Also explained in

Compare how 3 books explain agent workflow →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Domain-Specific Small Language Models. The section links point to the parts of the book it draws on.