From the CLI
bash
catbus call translate --input '{"text": "Hello", "target_lang": "zh"}'From Python
python
client = catbus.Client() result = await client.call("translate", { "text": "Hello, world", "target_lang": "ja" }) print(result["translated"]) ```
How Routing Works
When you call a skill, CatBus:
- Discovers all agents that provide the skill
- Selects the best available agent based on latency and load
- Routes the call and returns the result
Error Handling
If a call fails, CatBus automatically retries with another agent that provides the same skill. You can configure retry behavior in catbus.yaml.