quick-window-91705
09/11/2025, 9:06 PMLLMRegistry from agent-sdk
I feel it may be justified to have LLMRegistry and ConversationStats be part of a shared framework that app sever and CLI inherit as a dependencychilly-france-44439
09/11/2025, 9:14 PMquick-window-91705
09/11/2025, 9:15 PMwooden-umbrella-84098
09/11/2025, 9:24 PMwooden-umbrella-84098
09/11/2025, 9:24 PMwooden-umbrella-84098
09/11/2025, 9:24 PMwooden-umbrella-84098
09/11/2025, 9:25 PMwooden-umbrella-84098
09/11/2025, 9:26 PMquick-window-91705
09/11/2025, 9:42 PMLLMRegistry in the SDK doesn’t actually do anything; it’s just a utility that’s really only useful for client-specific concerns. That said, I can see why other client developers might face similar needs.
However, now that I think about it we want to support max budget per conversation. A single conversation may consume budget across multiple LLM services, including calls made outside the agent loop itself (e.g., solvability analysis). Those costs still need to be accounted for in the agent loop.
So I think we do want to have registry and convo stats in the sdk, and re-consider how we instantiate LLMs. As it stands the Agent lacks contexts on total spendwooden-umbrella-84098
09/11/2025, 9:45 PMcalm-artist-7206
09/12/2025, 12:26 AMchilly-france-44439
09/12/2025, 12:27 AMcalm-artist-7206
09/12/2025, 12:35 AMcalm-artist-7206
09/12/2025, 12:38 AMcalm-artist-7206
09/12/2025, 12:39 AMquick-window-91705
09/12/2025, 12:39 AMcalm-artist-7206
09/12/2025, 12:40 AMcalm-artist-7206
09/12/2025, 12:47 AMwooden-umbrella-84098
09/12/2025, 1:24 PMLLM.from_env to explicitly load an LLM object from env vars, but the client should need to do that explicitlywooden-umbrella-84098
09/12/2025, 1:25 PMLLM is a pydantic class with the settings as attributeswooden-umbrella-84098
09/12/2025, 1:26 PM