Implementation:Elevenlabs Elevenlabs python WorkflowOverrideAgentNodeModelInput
| Attribute | Value |
|---|---|
| Page Type | Implementation |
| Language | Python |
| SDK | elevenlabs |
| Class | WorkflowOverrideAgentNodeModelInput |
| Source File | src/elevenlabs/types/workflow_override_agent_node_model_input.py |
| Auto-Generated | Yes (Fern API Definition) |
Overview
Description
WorkflowOverrideAgentNodeModelInput is a Pydantic model representing the input configuration for an override agent node within a conversational AI workflow. It allows callers to specify conversation configuration overrides, additional prompts, supplementary knowledge bases, extra tool IDs, node positioning, edge ordering, and a human-readable label for the subagent node.
Usage
This model is used when defining or updating an override agent node in a workflow graph. An override agent node allows a subagent to conduct a conversation with customized configuration overrides applied on top of the main agent's settings. It supports adding extra knowledge bases and tools specific to the subagent's context.
Code Reference
Source Location
src/elevenlabs/types/workflow_override_agent_node_model_input.py
Class Signature
class WorkflowOverrideAgentNodeModelInput(UncheckedBaseModel):
...
Import Statement
from elevenlabs.types import WorkflowOverrideAgentNodeModelInput
I/O Contract
| Field Name | Type | Required | Description |
|---|---|---|---|
| conversation_config | typing.Optional[ConversationalConfigApiModelWorkflowOverrideInput] |
No | Configuration overrides applied while the subagent is conducting the conversation. |
| additional_prompt | typing.Optional[str] |
No | Specific goal for this subagent. Added to the system prompt to refine the agent's behavior in this specific context. |
| additional_knowledge_base | typing.Optional[typing.List[KnowledgeBaseLocator]] |
No | Additional knowledge base documents that the subagent has access to, used in addition to the main agent's documents. |
| additional_tool_ids | typing.Optional[typing.List[str]] |
No | IDs of additional tools that the subagent has access to, used in addition to the main agent's tools. |
| position | typing.Optional[PositionInput] |
No | Position of the node in the workflow. |
| edge_order | typing.Optional[typing.List[str]] |
No | The IDs of outgoing edges in the order they should be evaluated. |
| label | str |
Yes | Human-readable label for the node used throughout the UI. |
Model Configuration:
- Frozen (immutable) model
- Allows extra fields
- Supports both Pydantic v1 and v2
- Uses forward reference resolution via
update_forward_refs
Usage Examples
Minimal override agent node
from elevenlabs.types import WorkflowOverrideAgentNodeModelInput
node = WorkflowOverrideAgentNodeModelInput(
label="Customer Support Agent",
)
Override agent node with additional prompt and tools
from elevenlabs.types import WorkflowOverrideAgentNodeModelInput
node = WorkflowOverrideAgentNodeModelInput(
label="Billing Support Agent",
additional_prompt="Focus on billing inquiries and payment issues.",
additional_tool_ids=["tool_billing_lookup", "tool_payment_status"],
edge_order=["edge_resolved", "edge_escalate"],
)
Override agent node with knowledge base and position
from elevenlabs.types import (
WorkflowOverrideAgentNodeModelInput,
KnowledgeBaseLocator,
PositionInput,
)
node = WorkflowOverrideAgentNodeModelInput(
label="Technical Support Agent",
additional_prompt="Help users with technical troubleshooting.",
additional_knowledge_base=[
KnowledgeBaseLocator(id="kb_troubleshooting_guide"),
],
position=PositionInput(x=100, y=200),
)
Related Pages
- WorkflowStandaloneAgentNodeModelInput - Standalone agent node model for workflow inputs
- WorkflowPhoneNumberNodeModelOutput - Phone number node model for workflow outputs
- WorkflowExpressionConditionModelInputExpression - Expression condition model for workflow inputs