Skip to content

Conversation

@apisani1
Copy link
Contributor

@apisani1 apisani1 commented Feb 13, 2025

I want to add documentation for a new integration with SWI-Prolog.

@hwchase17 check this out:
https://github.com/apisani1/langchain-prolog/tree/main/examples/travel_agent

@vercel
Copy link

vercel bot commented Feb 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 20, 2025 2:46pm

"\n",
"agent = create_tool_calling_agent(llm, tools, prompt)\n",
"\n",
"agent_executor = AgentExecutor(agent=agent, tools=tools)"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would welcome another PR updating this to langgraph's prebuilt create_react_agent

from langgraph.prebuilt import create_react_agent

agent_executor = create_react_agent(llm, list_of_tools)

for step in agent_executor.stream(
    {"messages": "input message here"},
    stream_mode="values",
):
    step["messages"][-1].pretty_print()

If helpful, there's a more detailed migration guide here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ccurme Could you please give me a hint of what #5 refers to?

In order to contribute an integration, you should follow these steps:

  1. Confirm that your integration is in the list of components we are currently encouraging.
  2. Implement your package and publish it to a public github repository.
  3. Implement the standard tests for your integration and successfully run them.
  4. Publish your integration by publishing the package to PyPi and add docs in the docs/docs/integrations directory of the LangChain monorepo.
  5. [Optional] Open and merge a PR to add documentation for your integration to the official LangChain docs.
  6. [Optional] Engage with the LangChain team for joint co-marketing (see below).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, these instructions are included in step 4 (apologies as I see that is confusing): https://python.langchain.com/docs/contributing/how_to/integrations/publish/#adding-documentation-to-the-langchain-monorepo

Copy link
Collaborator

Choose a reason for hiding this comment

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

Though it looks like this was done correctly here #29788 :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Let me know if you mean number 6.

@dosubot dosubot bot added the lgtm label Feb 20, 2025
@ccurme ccurme merged commit 2c403a3 into langchain-ai:master Feb 20, 2025
13 checks passed
@apisani1
Copy link
Contributor Author

apisani1 commented Feb 28, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants