agents.simple.v2.configยถ

Simple agent implementation with comprehensive schema handling.

This module defines a basic single-node agent that uses AugLLMConfig for reasoning, with support for structured outputs, schema composition, and explicit input/output schemas.

Classesยถ

SimpleAgent

A simple agent with a single node workflow and comprehensive schema handling.

Module Contentsยถ

class agents.simple.v2.config.SimpleAgent(config)ยถ

Bases: haive.core.engine.agent.agent.Agent[haive.agents.simple.config.SimpleAgentConfig]

A simple agent with a single node workflow and comprehensive schema handling.

Features: - Single processing node using AugLLMConfig - Support for explicit input/output schemas - Automatic schema derivation from engine - Intelligent input/output mapping - Structured output support

Initialize the SimpleAgent with configuration.

Parameters:

config (haive.agents.simple.config.SimpleAgentConfig) โ€“ SimpleAgentConfig instance

has_messages_input()ยถ

Check if this agent accepts a โ€˜messagesโ€™ input.

Returns:

True if agent has a messages field in input schema

Return type:

bool

setup_workflow()ยถ

Set up a single-node workflow with the configured schemas and mappings.

This creates a simple graph with one processing node that handles: - Receiving input according to input schema - Processing with the AugLLM engine - Outputting results according to output schema

Return type:

None