Module agent

Module agent 

Source
Available on crate feature agents only.
Expand description

Agent implementations (LLM, Custom, Workflow agents).

Provides the core agent types:

Available with feature: agents

Modules§

guardrails
Guardrail integration for LlmAgent
tool_call_markup
XML-based tool call markup parsing.

Structs§

ConditionalAgent
Conditional agent runs different sub-agents based on a condition
CustomAgent
CustomAgentBuilder
GuardrailSetNon-guardrails
Placeholder type when guardrails feature is disabled
LlmAgent
LlmAgentBuilder
LoopAgent
Loop agent executes sub-agents repeatedly for N iterations or until escalation
ParallelAgent
Parallel agent executes sub-agents concurrently
SequentialAgent
Sequential agent executes sub-agents once in order

Traits§

Agent

Functions§

normalize_content
Normalize content by converting tool call markup in text parts to FunctionCall parts.
normalize_option_content
Normalize Option<Content> by converting tool call markup.