OpenAI 《A practical guide to building agents》
manager_agent,msg) message orchestrator_output.new_messages: (f" - {message.content}") async def for in print "Translate 'hello' to Spanish, French and Italian for me!" Translation step: Declarative 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 from import from import class str async def ( "Churn Detection Agent" "Identify if the user message indicates a potential run(customer_support_agent, "Hello!") ("Hello message passed") [None] input: str list await input return async def await print "Customer support agent", "You are a customer support agent. You help customers0 码力 | 34 页 | 7.00 MB | 5 月前3
共 1 条
- 1