OptionalcallbacksOptionalconfigurableRuntime values for attributes previously made configurable on this Runnable, or sub-Runnables.
OptionalcontextUser provided context
OptionalinterruptInterrupts the execution of a graph node.
This function can be used to pause execution of a node, and return the value of the resume
input when the graph is re-invoked using Command.
Multiple interrupts can be called within a single node, and each will be handled sequentially.
When an interrupt is called:
resume value available (from a previous Command), it returns that value.GraphInterrupt with the provided valueCommand with a resume valueBecause the interrupt function propagates by throwing a special GraphInterrupt error,
you should avoid using try/catch blocks around the interrupt function,
or if you do, ensure that the GraphInterrupt error is thrown again within your catch block.
The value to include in the interrupt.
The resume value provided when the graph is re-invoked with a Command.
OptionalmaxMaximum number of parallel calls to make.
OptionalmetadataMetadata for this call and any sub-calls (eg. a Chain calling an LLM). Keys should be strings, values should be JSON-serializable.
OptionalrecursionMaximum number of times a call can recurse. If not provided, defaults to 25.
OptionalrunUnique identifier for the tracer run for this call. If not provided, a new UUID will be generated.
OptionalrunName for the tracer run for this call. Defaults to the name of the class.
OptionalsignalAbort signal for this call. If provided, the call will be aborted when the signal is aborted.
OptionalstorePersistent key-value store
OptionaltagsTags for this call and any sub-calls (eg. a Chain calling an LLM). You can use these to filter calls.
OptionaltimeoutTimeout for this call in milliseconds.
OptionalwriterCallback to send custom data chunks via the custom stream mode
Callbacks for this call and any sub-calls (eg. a Chain calling an LLM). Tags are passed to all callbacks, metadata is passed to handle*Start callbacks.