ToolOutcome

org.llm4s.agent.graph.tool.ToolOutcome

What a tool call produced, as data.

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

final case class Ask[Q](question: Q)

A question for the caller, of the type the tool declares; the answer arrives through resume.

A question for the caller, of the type the tool declares; the answer arrives through resume.

Attributes

final case class Error(message: String)

A tool-level failure: the model sees message; the run continues.

A tool-level failure: the model sees message; the run continues.

Attributes

final case class Fatal(error: LLMError)

An infrastructure failure: the run fails with GraphError.ToolFailed.

An infrastructure failure: the run fails with GraphError.ToolFailed.

Attributes

final case class NeedsApproval(reason: String)

The call needs approval before it runs; the loop suspends at its approval node.

The call needs approval before it runs; the loop suspends at its approval node.

Attributes

final case class Success(content: Value, update: StateUpdate)

The call's result for the model, and an update to keys the tool declares in writes.

The call's result for the model, and an update to keys the tool declares in writes.

Attributes