Skip to main content
All Python modules · Import and compatibility guidance

Workflow operations

Public contracts

Exports

HatchetContext

Typed invocation view exposed through context.extensions("hatchet").

HatchetContext.extension_name

Return the extension whose invocation authority this context carries.

HatchetContext.active

Report whether the owning managed invocation is still active.

HatchetContext.continuations

Return provider-bound suspension authority for this invocation.

HatchetContext.run

Submit external work without waiting in the agent request.

HatchetContext.status

Read one external job status through invocation credentials.

HatchetContext.wait

Suspend this tool continuation until Hatchet reaches a terminal state.

HatchetContext.run_and_wait

Preflight durable suspension before submitting external work.

HatchetContext.cancel

Request cancellation while leaving worker shutdown to its owner.

HatchetExtension

Expose Hatchet as an invocation-safe native extension capability.

HatchetExtension.start

Register validation before restoring pending provider monitors.

HatchetExtension.stop

Stop local pollers without cancelling independently durable Hatchet jobs.

HatchetExtension.create_context

Create a fresh revocable view after extension startup succeeds.

HatchetExtension.context

Return the task-local extension context for the active invocation.

HatchetExtension.run

Submit work through the context active in the current invocation.

HatchetExtension.status

Read job status through the active typed context.

HatchetExtension.wait

Suspend and resume the active authored tool continuation.

HatchetExtension.run_and_wait

Submit only after the current invocation proves it can suspend.

HatchetExtension.cancel

Cancel an external run through the active typed context.

HatchetRun

Portable identity for work owned by the external Hatchet runtime.
Fields (— means no declared default):

HatchetRunStatus

Provider statuses that affect continuation decisions.

hatchet

Expose Hatchet as an invocation-safe native extension capability.

hatchet.start

Register validation before restoring pending provider monitors.

hatchet.stop

Stop local pollers without cancelling independently durable Hatchet jobs.

hatchet.create_context

Create a fresh revocable view after extension startup succeeds.

hatchet.context

Return the task-local extension context for the active invocation.

hatchet.run

Submit work through the context active in the current invocation.

hatchet.status

Read job status through the active typed context.

hatchet.wait

Suspend and resume the active authored tool continuation.

hatchet.run_and_wait

Submit only after the current invocation proves it can suspend.

hatchet.cancel

Cancel an external run through the active typed context.

extension

Expose Hatchet as an invocation-safe native extension capability.

extension.start

Register validation before restoring pending provider monitors.

extension.stop

Stop local pollers without cancelling independently durable Hatchet jobs.

extension.create_context

Create a fresh revocable view after extension startup succeeds.

extension.context

Return the task-local extension context for the active invocation.

extension.run

Submit work through the context active in the current invocation.

extension.status

Read job status through the active typed context.

extension.wait

Suspend and resume the active authored tool continuation.

extension.run_and_wait

Submit only after the current invocation proves it can suspend.

extension.cancel

Cancel an external run through the active typed context.