Calling langgraph with langgraph-sdk config issue? #777
-
Hi Team Im looking at calling langgraph from the langgraph-sdk following the example I have noticed while the example works, if i add more things to the GraphConfig class GraphConfig(TypedDict):
user_id: str
model_name: str and set this in the javascript const client = new Client();
const assistant = await client.assistants.create({
graphId: "agent",
config: { configurable: {
model_name: "anthropic",
user_id: "in here test"
}},
});
console.log("Assistant", assistant); I do not seem to get these new values log.info(f"config: {config.get('configurable', {})}")
langgraph-api-1 | 2024-06-23 23:05:41,729:INFO:agent config: {'run_id': '1ef31b51-7c09-6324-bdfc-9e6293f5cac3', 'user_id': '', 'graph_id': 'agent', 'thread_id': '91a03cce-7b23-47f5-bb2a-afa5073c586e', 'thread_ts': None, 'model_name': 'anthropic', 'assistant_id': 'f78f0f0e-fe68-40e8-ab90-d2d9e2770a55', as you can see model_name is mapped but user_id is not? have i missed something? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
covered in new documentation |
Beta Was this translation helpful? Give feedback.
-
@darthShana thanks for reporting this -- we just made updates so that the |
Beta Was this translation helpful? Give feedback.
covered in new documentation
https://langchain-ai.github.io/langgraph/cloud/sdk/js_sdk/#simple-invocation