Kitaru

task

Agent-facing accessors for code running inside a task process.

funcget_task_id() -> str | None

Get the id of the running task.

Returns

str | None

Task id, None outside task mode.

funcget_task_inputs() -> Any

Get 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.Any

Task inputs, None outside task mode.