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

Function step_handler

packages/sdk/python/examples/minimal.py:9–13  ·  view source on GitHub ↗
(step: Step)

Source from the content-addressed store, hash-verified

7
8
9async def step_handler(step: Step) -> Step:
10 print(f"step: {step.input}")
11 await Agent.db.create_step(step.task_id, f"Next step from step {step.name}")
12 step.output = step.input
13 return step
14
15
16Agent.setup_agent(task_handler, step_handler).start()

Callers

nothing calls this directly

Calls 1

create_stepMethod · 0.45

Tested by

no test coverage detected