Installation
Initialization
register_worker
Create an III client and connect to the engine. Blocks until the WebSocket connection is established and ready. SignatureParameters
Example
Methods
register_trigger
SignatureParameters
register_function
SignatureParameters
trigger
SignatureParameters
register_trigger_type
SignatureParameters
unregister_trigger_type
SignatureParameters
shutdown
SignatureTypes
iii
EnqueueResult · InitOptions · MiddlewareFunctionInput · StreamRequest · StreamResponse · TelemetryOptions · TriggerAction · TriggerActionEnqueue
EnqueueResult
Result returned when a function is invoked withTriggerAction.Enqueue.
InitOptions
Options for configuring the III SDK.MiddlewareFunctionInput
Input passed to the RBAC middleware function on every function invocation through the RBAC port.StreamRequest
Streaming request without the response writer.StreamResponse
Streaming response built on top of a ChannelWriter.TelemetryOptions
Worker metadata reported to the engine.TriggerAction
Factory for creating trigger actions used withtrigger().
TriggerActionEnqueue
Routes the invocation through a named queue for async processing.iii.channel
Channel · ChannelReader · ChannelWriter · StreamChannelRef
Channel
A streaming channel pair for worker-to-worker data transfer.ChannelReader
WebSocket-backed reader for streaming binary data and text messages.ChannelWriter
WebSocket-backed writer for streaming binary data and text messages.StreamChannelRef
Reference to a streaming channel for worker-to-worker data transfer.iii.engine
EngineFunctions · EngineTriggers
EngineFunctions
Engine function ids for internal operations (parity with the Node SDK).EngineTriggers
Engine trigger ids (parity with the Node SDK).iii.errors
InvocationError
InvocationError
Raised when an invocation dispatched by the SDK fails. Inspecterr.code to react to a specific category (e.g.
'FORBIDDEN' for RBAC denials, 'TIMEOUT' for timeouts). Catch
this class to handle every rejection. except Exception continues to
work because InvocationError inherits from Exception.
Attributes are read-only after construction. stacktrace is the
engine-side trace when the remote handler raised; it may include
internal file paths and should not be surfaced to end users. str(err)
intentionally never includes the stacktrace.
iii.internal
InternalHttpRequest
InternalHttpRequest
HTTP request with embedded channel references for streaming.iii.protocol
MessageType · RegisterFunctionFormat · RegisterFunctionInput · RegisterFunctionMessage · RegisterTriggerInput · RegisterTriggerMessage · RegisterTriggerTypeInput · RegisterTriggerTypeMessage · TriggerRequest
MessageType
Message types for iii communication.RegisterFunctionFormat
Format definition for function parameters.RegisterFunctionInput
Input for registering a function, matches Node.js RegisterFunctionInput.RegisterFunctionMessage
RegisterTriggerInput
Input for registering a trigger (matches Node SDK’s RegisterTriggerInput).RegisterTriggerMessage
RegisterTriggerTypeInput
Input for registering a trigger type.RegisterTriggerTypeMessage
TriggerRequest
Request object fortrigger().
iii.runtime
FunctionRef · TriggerTypeRef
FunctionRef
Reference to a registered function, allowing programmatic unregistration.TriggerTypeRef
Typed handle returned by :meth:iii.III.register_trigger_type.
Type parameters:
C: configuration type for :meth:register_triggerR: call-request type for :meth:register_function
iii.state
IState · StateDeleteInput · StateDeleteResult · StateEventData · StateEventType · StateGetInput · StateListInput · StateSetInput · StateSetResult · StateUpdateInput · StateUpdateResult
IState
Abstract interface for state management operations.StateDeleteInput
Input for deleting a state value.StateDeleteResult
Result of a state delete operation.StateEventData
Payload for state change events.StateEventType
Types of state change events.StateGetInput
Input for retrieving a state value.StateListInput
Input for listing all values in a state scope.StateSetInput
Input for setting a state value.StateSetResult
Result of a state set operation.StateUpdateInput
Input for atomically updating a state value.StateUpdateResult
Result of a state update operation.iii.stream
IStream · StreamDeleteInput · StreamDeleteResult · StreamGetInput · StreamListGroupsInput · StreamListInput · StreamSetInput · StreamSetResult · StreamUpdateInput · StreamUpdateResult
IStream
Abstract interface for stream operations.StreamDeleteInput
Input for stream delete operation.StreamDeleteResult
Result of stream delete operation.StreamGetInput
Input for stream get operation.StreamListGroupsInput
Input for stream list groups operation.StreamListInput
Input for stream list operation.StreamSetInput
Input for stream set operation.StreamSetResult
Result of stream set operation.StreamUpdateInput
Input for stream update operation.StreamUpdateResult
Result of stream update operation.iii.trigger
Trigger · TriggerActionVoid · TriggerConfig · TriggerHandler