Official Python adapter for RelayPlane - seamlessly integrate AI agent routing into your Python applications.
The Python adapter for RelayPlane is currently in active development. We're building a comprehensive Python SDK that will provide the same powerful features as our JavaScript SDK.
pip install relayplane
from relayplane import RelayPlane
# Initialize the client
client = RelayPlane(api_key="your-api-key")
# Simple agent call
async def main():
response = await client.relay(
agent="claude-3-sonnet",
message="Analyze this data for trends",
optimize=True
)
print(response.content)
# Multi-agent workflow
workflow = client.workflow([
{"agent": "gpt-4", "task": "summarize"},
{"agent": "claude", "task": "translate", "target_lang": "es"}
])
result = await workflow.execute("Your input text here")