()
| 6 | |
| 7 | |
| 8 | async def main(): |
| 9 | rpc = AgentRPC( |
| 10 | api_secret=os.environ.get("AGENTRPC_API_SECRET", ""), |
| 11 | ) |
| 12 | |
| 13 | agent = Agent(name="AgentRPC Agent", tools=rpc.openai.agents.get_tools()) |
| 14 | |
| 15 | result = await Runner.run( |
| 16 | agent, |
| 17 | input="What is the weather in Melbourne?", |
| 18 | ) |
| 19 | print(result.final_output) |
| 20 | |
| 21 | |
| 22 | if __name__ == "__main__": |
no test coverage detected