MCPcopy Create free account
hub / github.com/agentrpc/agentrpc / main

Function main

examples/python/openai-agents.py:8–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7
8async 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
22if __name__ == "__main__":

Callers 1

openai-agents.pyFile · 0.70

Calls 3

AgentRPCStruct · 0.90
getMethod · 0.80
get_toolsMethod · 0.45

Tested by

no test coverage detected