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

Function handle_tools

app/api/agentops/api/event_handlers.py:174–189  ·  view source on GitHub ↗
(event, session_id, supabase: AsyncSupabaseClient = None)

Source from the content-addressed store, hash-verified

172
173
174async def handle_tools(event, session_id, supabase: AsyncSupabaseClient = None):
175 if supabase is None:
176 supabase = await get_async_supabase()
177
178 tool = {
179 "id": event.get("id", str(uuid.uuid4())),
180 "session_id": session_id,
181 "agent_id": event.get("agent_id", None),
182 "name": event.get("name", None),
183 "logs": event.get("logs", None),
184 "params": event.get("params", None),
185 "returns": event.get("returns", None),
186 "init_timestamp": event["init_timestamp"],
187 "end_timestamp": event["end_timestamp"],
188 }
189 return tool
190
191
192async def handle_errors(event, session_id, supabase: AsyncSupabaseClient = None):

Callers

nothing calls this directly

Calls 2

get_async_supabaseFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…