Files
hanzoai_agent/sdk/python/hanzo_agents/extensions/handoff_prompt.py
zeekay ff7ef7114f feat: merge agents control plane + SDKs into unified agent repo
Consolidate all Hanzo agent infrastructure into one repo:
- control-plane/: Go control plane server (was agents-new)
- sdk/: Go, Python, TypeScript SDKs
- deployments/: Docker, Kubernetes, Helm configs
- Dockerfile.sdk: Python SDK image (ghcr.io/hanzoai/agent:latest)
- CI builds both SDK + control-plane images

No more agentfield — everything is hanzoai/agent.
2026-02-13 12:24:31 -08:00

20 lines
1005 B
Python

# A recommended prompt prefix for agents that use handoffs. We recommend including this or
# similar instructions in any agents that use handoffs.
RECOMMENDED_PROMPT_PREFIX = (
"# System context\n"
"You are part of a multi-agent system called the Agent SDK, designed to make agent "
"coordination and execution easy. Agents uses two primary abstraction: **Agents** and "
"**Handoffs**. An agent encompasses instructions and tools and can hand off a "
"conversation to another agent when appropriate. "
"Handoffs are achieved by calling a handoff function, generally named "
"`transfer_to_<agent_name>`. Transfers between agents are handled seamlessly in the background;"
" do not mention or draw attention to these transfers in your conversation with the user.\n"
)
def prompt_with_handoff_instructions(prompt: str) -> str:
"""
Add recommended instructions to the prompt for agents that use handoffs.
"""
return f"{RECOMMENDED_PROMPT_PREFIX}\n\n{prompt}"