MCPcopy Create free account
hub / github.com/agi-inc/agent-protocol / task_handler

Function task_handler

packages/sdk/python/examples/minimal.py:4–6  ·  view source on GitHub ↗
(task: Task)

Source from the content-addressed store, hash-verified

2
3
4async def task_handler(task: Task) -> None:
5 print(f"task: {task.input}")
6 await Agent.db.create_step(task.task_id, task.input)
7
8
9async def step_handler(step: Step) -> Step:

Callers

nothing calls this directly

Calls 1

create_stepMethod · 0.45

Tested by

no test coverage detected