Agent Component
The to_component() Pattern
to_component() Patternfrom glaip_sdk import Agent
# 1. Initialize your agent
my_agent = Agent(
name="Researcher",
instruction="You are a research assistant."
)
# 2. Convert to a Component
# This returns an AgentComponent instance
agent_component = my_agent.to_component()Pipeline Integration
Supported Input Mapping
Argument
Type
Description
Advanced Execution Control
Example Workflow
How Prompt Compilation Works
Installation
Last updated
Was this helpful?