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). adjustments are the completion's (Completion.adjustments): the options the client did not send as asked (RFC 0008, #2115); llm4s's own clients put no message content in them. Empty for usage recorded without a call, and in an event stored before the field existed. An adjustment this version cannot read, an option or a case added later, is left out rather than failing the event.
Attributes
- Source
- AgentEventPayloads.scala
- Graph
-
- Supertypes
