How LLM apps really work
Sat 7 Nov
One model call, end to end
- Tokens, context windows and what a call really costs
- Messages, roles and structured output with Pydantic
- Calling OpenAI and a local model through LangChain's init_chat_model
LabA first app that prints the token count and cost of every call.
Sat 14 Nov
Build: the tool-calling loop by hand
- How a model asks for a tool and how you return the result
- The same loop with LangChain's create_agent
- Review: what to log from day one
LabWrite the agent loop yourself in about 40 lines, then replace it with create_agent and compare.
fig. 1
