Skip to main content

Agent

Execute individual agents with the Agent class.

Constructor

Methods

execute()

Execute the agent with inputs.
Example:

Result Type

AgentBuilder

Programmatically build agents without YAML.

Constructor

Methods

name()

Set agent name.

description()

Set agent description.

input()

Define an input.
Example:

operation()

Add an operation.
Example:

output()

Define output mapping.

cache()

Configure caching.

build()

Build the agent.

Complete Example

createAgent()

Factory function for creating agents.

Operation Helpers

Helper functions for common operation patterns.

thinkOperation()

httpOperation()

storageOperation()

Next Steps

Core Classes

Conductor class

SDK Methods

All SDK methods

Creating Agents

Agent guide

Operations

Operation reference