ModelCallCompleted

org.llm4s.agent.events.ModelCallCompleted
final case class ModelCallCompleted(agent: String, model: String, attempts: Int, toolCalls: Int, usage: Option[CallUsage], estimatedCost: Option[Double], provider: Option[ProviderId])

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
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product