MCPcopy Create free account
hub / github.com/vercel/examples / tool_started_sse

Function tool_started_sse

python/vibe-coding-ide/backend/src/sse.py:33–50  ·  view source on GitHub ↗
(task_id: str, ev: dict[str, Any])

Source from the content-addressed store, hash-verified

31
32
33def tool_started_sse(task_id: str, ev: dict[str, Any]) -> str:
34 return sse_format(
35 emit_event(
36 task_id,
37 "progress_update_tool_action_started",
38 data={
39 "args": [
40 {
41 "id": ev["tool_id"],
42 "function": {
43 "name": ev["name"],
44 "arguments": ev.get("arguments"),
45 },
46 }
47 ]
48 },
49 )
50 )
51
52
53def tool_completed_sse(

Callers 2

run_agent_flowFunction · 0.90
resume_agent_flowFunction · 0.90

Calls 3

sse_formatFunction · 0.85
emit_eventFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected