task
Agent-facing accessors for code running inside a task process.
funcget_task_id() -> str | NoneGet the id of the running task.
Returns
str | NoneTask id, None outside task mode.
funcget_task_inputs() -> AnyGet the inputs of the running agent task.
Reads KITARU_TASK_INPUTS when set. Otherwise fetches the task spec with a single synchronous request, since this accessor must stay callable from inside a running event loop.
Returns
typing.AnyTask inputs, None outside task mode.