ModelCallCompleted
org.llm4s.agent.events.ModelCallCompleted
A model call of agent's returned a completion: one event per provider call, whichever response the model wrappers kept, so the events sum to the thread's usage. attempts is the call's attempt number within its model step, from 1 - a retrying wrapper's calls are 1, 2, ... - and 0 for a call a hook made through ModelContext.accounted, or usage it recorded with ModelContext.recordUsage. toolCalls is the completion's. usage and estimatedCost (USD) are the completion's, when the provider reported them. provider is the canonical id of the provider called, when its client reported one (LLMClient.providerId); None in an event stored before it existed (#2275).
Attributes
- Source
- AgentEventPayloads.scala
- Graph
-
- Supertypes
Members list
In this article
