MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / __init__

Method __init__

app/e2e/sdk-api/src/agents/basic_agent.py:13–22  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11
12class BasicAgent:
13 def __init__(self):
14 print(" -- Testing with OpenAI v1.0.0+ -- ")
15 self.client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY"))
16 agentops.init(
17 api_key=Project.API_KEY,
18 endpoint="http://0.0.0.0:8000",
19 tags=["test agent", openai.__version__],
20 auto_start_session=False,
21 )
22 self.async_client = AsyncOpenAI(api_key=os.environ.get("OPENAI_API_KEY"))
23
24 def completion(self):
25 return self.client.chat.completions.create(

Callers

nothing calls this directly

Calls 2

initMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected