class documentation
class _LangSmithWorkflowInboundInterceptor(temporalio.worker.WorkflowInboundInterceptor): (source)
Constructor: _LangSmithWorkflowInboundInterceptor(next)
Instruments workflow execution with LangSmith runs.
| Async Method | execute |
Called to run the workflow. |
| Async Method | handle |
Called to handle a query. |
| Async Method | handle |
Called to handle a signal. |
| Async Method | handle |
Called to handle an update's handler. |
| Method | handle |
Called to handle an update's validation stage. |
| Method | init |
Initialize with an outbound interceptor. |
| Method | _workflow |
Workflow-specific run creation with metadata. |
| Class Variable | _config |
Undocumented |
Inherited from WorkflowInboundInterceptor:
| Method | __init__ |
Create the inbound interceptor. |
| Instance Variable | next |
Undocumented |
async def handle_update_handler(self, input:
temporalio.worker.HandleUpdateInput) -> Any:
(source)
¶
Called to handle an update's handler.
Initialize with an outbound interceptor.
To add a custom outbound interceptor, wrap the given interceptor before sending to the next init call.
def _workflow_maybe_run(self, name:
str, headers: Mapping[ str, Payload] | None = None) -> Iterator[ None]:
(source)
¶
Workflow-specific run creation with metadata.
Extracts parent from headers (if provided) and sets up tracing_context so @traceable functions called from workflow code can discover the parent and LangSmith client, independent of the add_temporal_runs toggle.