TypedAgent

org.llm4s.agent.delegation.TypedAgent
See theTypedAgent companion class
object TypedAgent

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TypedAgent.type

Members list

Value members

Concrete methods

def apply[I : ReadWriter, O : ReadWriter](id: String, description: String, input: SchemaDefinition[I], output: SchemaDefinition[O]): TypedAgent[I, O]

A subagent taking I, described by input - the schema of its own task_<id> tool - and reporting O, in the schema output, which the child answers in. An I of TaskRequest, with its derived codec, is offered through the shared task tool instead.

A subagent taking I, described by input - the schema of its own task_<id> tool - and reporting O, in the schema output, which the child answers in. An I of TaskRequest, with its derived codec, is offered through the shared task tool instead.

Attributes

def text(id: String, description: String): TypedAgent[TaskRequest, String]

A subagent taking a TaskRequest and reporting its answer as text, offered through the shared task tool, in the shape Deep Agents uses: {subagent_type, description}.

A subagent taking a TaskRequest and reporting its answer as text, offered through the shared task tool, in the shape Deep Agents uses: {subagent_type, description}.

Attributes