Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdk-py: Add Sequence[dict] type to values param type for update_state() #2054

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

andrewnguonly
Copy link
Contributor

Summary

The LangGraph API supports a list of dict for the values field for the POST /threads/<thread_id>/state endpoint.

Reference: https://github.com/langchain-ai/langgraph-api/blob/main/api/openapi.json#L3005-L3021

@andrewnguonly
Copy link
Contributor Author

I don't think this will resolve the mypy errors with the RemotePregel interface, but at least it's more precise with respect to the API implementation.

The RemotePregel interface accepts Any for values.

@andrewnguonly andrewnguonly merged commit 7883cea into main Oct 8, 2024
50 checks passed
@andrewnguonly andrewnguonly deleted the an/08oct/values-type branch October 8, 2024 20:49
dqbd pushed a commit that referenced this pull request Oct 9, 2024
…state()` (#2054)

### Summary
The LangGraph API supports a list of `dict` for the `values` field for
the `POST /threads/<thread_id>/state` endpoint.

Reference:
https://github.com/langchain-ai/langgraph-api/blob/main/api/openapi.json#L3005-L3021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants