ModelStep

org.llm4s.agent.graph.toolloop.ModelStep
See theModelStep companion object
trait ModelStep

The model call: the conversation so far, and the tools on offer, to the model's completion.

Attributes

Companion
object
Source
ToolLoop.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def next(messages: Vector[Message], tools: ToolSet, call: ModelCall): Result[Completion]

Attributes

Source
ToolLoop.scala

Concrete methods

The canonical id of the provider this step calls, when it is known: recorded on each ModelCallCompleted, for tracing's gen_ai.provider.name (#2275). None by default; ModelStep.fromClient gives its client's.

The canonical id of the provider this step calls, when it is known: recorded on each ModelCallCompleted, for tracing's gen_ai.provider.name (#2275). None by default; ModelStep.fromClient gives its client's.

Attributes

Source
ToolLoop.scala

The response format a call offering tools is sent with, if any: counted in the usage estimate of a completion that reports none (#2084). None by default; ModelStep.fromClient gives its own.

The response format a call offering tools is sent with, if any: counted in the usage estimate of a completion that reports none (#2084). None by default; ModelStep.fromClient gives its own.

Attributes

Source
ToolLoop.scala