-
Notifications
You must be signed in to change notification settings - Fork 19.9k
docs: Add langchain-prolog documentation #29788
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
docs: Add langchain-prolog documentation #29788
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| "\n", | ||
| "agent = create_tool_calling_agent(llm, tools, prompt)\n", | ||
| "\n", | ||
| "agent_executor = AgentExecutor(agent=agent, tools=tools)" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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:
- Confirm that your integration is in the list of components we are currently encouraging.
- Implement your package and publish it to a public github repository.
- Implement the standard tests for your integration and successfully run them.
- Publish your integration by publishing the package to PyPi and add docs in the docs/docs/integrations directory of the LangChain monorepo.
- [Optional] Open and merge a PR to add documentation for your integration to the official LangChain docs.
- [Optional] Engage with the LangChain team for joint co-marketing (see below).
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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.
|
I’m sorry for the confusion created. The pull requests to include the documentation on langchain-prolog in the langchain monorepo are completed.
What I meant was step 5 of this guide on "How to contribute an integration”:
https://python.langchain.com/docs/contributing/how_to/integrations/
Contribute Integrations
python.langchain.com
Thanks,
Antonio
… On Feb 26, 2025, at 8:50 AM, ccurme ***@***.***> wrote:
@ccurme commented on this pull request.
In docs/docs/integrations/tools/prolog_tool.ipynb:
> + "\n",
+ "llm = ChatOpenAI(model=\"gpt-4o-mini\")\n",
+ "\n",
+ "prompt = ChatPromptTemplate.from_messages(\n",
+ " [\n",
+ " (\"system\", \"You are a helpful assistant\"),\n",
+ " (\"human\", \"{input}\"),\n",
+ " (\"placeholder\", \"{agent_scratchpad}\"),\n",
+ " ]\n",
+ ")\n",
+ "\n",
+ "tools = [prolog_tool]\n",
+ "\n",
+ "agent = create_tool_calling_agent(llm, tools, prompt)\n",
+ "\n",
+ "agent_executor = AgentExecutor(agent=agent, tools=tools)"
Let me know if you mean number 6.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
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