class documentation
class LangGraphPlugin(SimplePlugin): (source)
Constructor: LangGraphPlugin(graphs, entrypoints, tasks, activity_options, default_activity_options)
LangGraph plugin for Temporal SDK.
Warning
This package is experimental and may change in future versions. Use with caution in production environments.
This plugin runs LangGraph nodes and tasks as Temporal Activities, giving your AI agent workflows durable execution, automatic retries, and timeouts. It supports both the LangGraph Graph API (StateGraph) and Functional API (@entrypoint / @task).
| Method | __init__ |
Initialize the LangGraph plugin with graphs, entrypoints, and tasks. |
| Method | execute |
Prepare a node or task to execute as an activity or inline in the workflow. |
| Instance Variable | activities |
Undocumented |
Inherited from SimplePlugin:
| Method | configure |
See base class. |
| Method | configure |
See base class. |
| Method | configure |
See base class. |
| Async Method | connect |
See base class. |
| Method | name |
See base class. |
| Async Method | run |
See base class. |
| Async Method | run |
See base class. |
| Instance Variable | data |
Undocumented |
| Instance Variable | interceptors |
Undocumented |
| Instance Variable | nexus |
Undocumented |
| Instance Variable | run |
Undocumented |
| Instance Variable | workflow |
Undocumented |
| Instance Variable | workflow |
Undocumented |
| Instance Variable | workflows |
Undocumented |
| Instance Variable | _name |
Undocumented |
def __init__(self, graphs:
dict[ str, StateGraph[ Any, Any, Any, Any]] | None = None, entrypoints: dict[ str, Pregel[ Any, Any, Any, Any]] | None = None, tasks: list | None = None, activity_options: dict[ str, dict[ str, Any]] | None = None, default_activity_options: dict[ str, Any] | None = None):
(source)
¶
overrides
temporalio.plugin.SimplePlugin.__init__Initialize the LangGraph plugin with graphs, entrypoints, and tasks.