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

Function task_handler

packages/sdk/python/examples/smol_developer.py:78–81  ·  view source on GitHub ↗
(task: Task)

Source from the content-addressed store, hash-verified

76
77
78async def task_handler(task: Task) -> None:
79 if not task.input:
80 raise Exception("No task prompt")
81 await Agent.db.create_step(task.task_id, StepTypes.PLAN)
82
83
84async def step_handler(step: Step) -> Step:

Callers

nothing calls this directly

Calls 1

create_stepMethod · 0.45

Tested by

no test coverage detected