| Name | Type | Description |
|---|---|---|
assistant_id* | str | The assistant ID or graph name of the remote graph to use. |
url | str | None | Default: NoneThe URL of the remote API. |
api_key | str | None | Default: NoneThe API key to use for authentication. If not provided, it will be read from the environment ( |
headers | dict[str, str] | None | Default: None |
client | LangGraphClient | None | Default: None |
sync_client | SyncLangGraphClient | None | Default: None |
config | RunnableConfig | None | Default: None |
name | str | None | Default: None |
distributed_tracing | bool | Default: False |
| Name | Type |
|---|---|
| assistant_id | str |
| url | str | None |
| api_key | str | None |
| headers | dict[str, str] | None |
| client | LangGraphClient | None |
| sync_client | SyncLangGraphClient | None |
| config | RunnableConfig | None |
| name | str | None |
| distributed_tracing | bool |
The RemoteGraph class is a client implementation for calling remote
APIs that implement the LangGraph Server API specification.
For example, the RemoteGraph class can be used to call APIs from deployments
on LangSmith Deployment.
RemoteGraph behaves the same way as a Graph and can be used directly as
a node in another Graph.
Additional headers to include in the requests.
A LangGraphClient instance to use instead of creating a default client.
A SyncLangGraphClient instance to use instead of creating a default client.
An optional RunnableConfig instance with additional configuration.
Human-readable name to attach to the RemoteGraph instance.
This is useful for adding RemoteGraph as a subgraph via graph.add_node(remote_graph).
If not provided, defaults to the assistant ID.
Whether to enable sending LangSmith distributed tracing headers.