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

Add support for custom graphs via langgraph-cli #333

Open
wants to merge 33 commits into
base: main
Choose a base branch
from

Conversation

nfcampos
Copy link
Contributor

@nfcampos nfcampos commented May 6, 2024

Use any arbitrary state graph or message graph with opengpts through the API server created by langchain-cli.

  • launched as a single docker compose
  • postgres database shared between langgraph api and opengpts backend (different schemas)
  • to add a custom graph you'd edit langgraph.json and point it to your custom graph, adding any needed dependencies

build:
context: backend
ports:
- "8100:8000" # Backend is accessible on localhost:8100
depends_on:
langserve:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the langserve container defined?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its provided by the langgraph cli

pyjwt = {extras = ["crypto"], version = "^2.8.0"}
langchain-anthropic = "^0.1.8"
langgraph-sdk = "^0.1.1"
langgraph-cli = "^0.1.3"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The packages https://pypi.org/project/langgraph-sdk/ and https://pypi.org/project/langgraph-cli/ are missing metadata (the license information etc.).

andrewnguonly and others added 2 commits May 16, 2024 16:31
…checkpoint metadata score (#338)

* Update functionality of thumbs up/down buttons in UI to update thread checkpoint metadata score.

* Fix bugs with calling PATCH threads/<tid>/state API.

* Update frontend to expose Self-Learning Assistant.

* cr

* Fix bug in backend to make sure that agent graph returns dict graph state. Update frontend so that agent API call send dict.

* Call tool node should return dict.

* Update API call for updating tool messages.

* Restore functionality for sending feedback to LangSmith.

* Remove Self-Learning assistant.

* Small updates.

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
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.

None yet

5 participants