GitHub

HandlerContext

API reference for HandlerContext.

What a handler gets besides its parameters: the call's id and preliminary, which streams a progress value before the result.

Attributes

AttributeTypeDescription
tool_call_idstr | None
preliminaryCallable[[SS_contra], Effect[None]]

Functions

__init__

__init__(tool_call_id, preliminary) -> None
ParameterTypeDescription
tool_call_idstr | None
preliminaryCallable[[SS_contra], Effect[None]]