Nuno Campos and GitHub
909a4591a8
Port checkpointer/store fixtures in langgraph-prebuilt to idiomatic pattern ( #4629 )
2025-05-09 19:42:44 +00:00
Vadym Barda and GitHub
0e61cc2cf6
prebuilt: remove state_modifier ( #4439 )
...
Removes support for `state_modifier` param in `create_react_agent`. To
specify system prompt / instructions use `prompt` parameter.
2025-05-05 09:49:28 -04:00
Sydney Runkle and GitHub
a0a302dec5
prebuilt: switch to executing parallel tool calls via Send by default ( #4438 )
2025-05-05 09:49:09 -04:00
Sydney Runkle
3cf2291354
docstrings for prebuilt
2025-05-01 13:40:58 -04:00
Vadym Barda and GitHub
e25dde1df0
docs(reference): filter class methods and add missing docstrings ( #4463 )
2025-04-29 21:31:57 +00:00
Vadym Barda and GitHub
ea55c2d468
docs: simplify docstring / API reference for create_react_agent ( #4457 )
2025-04-29 18:52:43 +00:00
Sydney Runkle
6250b364f7
version bumps and locks
2025-04-28 17:39:20 -04:00
vbarda
4b7ec256e9
prebuilt: switch to executing parallel tool calls via Send by default
2025-04-28 11:07:27 -04:00
Sydney Runkle
5e9bea5134
no upper bounds for python
2025-04-25 17:45:54 -07:00
Nuno Campos
70afd2dc2c
Update all
2025-04-25 15:11:32 -07:00
Sydney Runkle
9e89b68596
fixing prebuilt tests
2025-04-22 17:24:54 -07:00
Vadym Barda and GitHub
e89633f30b
prebuilt: release 0.1.8 ( #4161 )
2025-04-03 12:01:18 -04:00
Vadym Barda and GitHub
67e8f8fc11
prebuilt: add optional pre-model hook that runs before calling LLM in create_react_agent ( #4059 )
...
Example:
```python
from typing import Any
from langchain_openai import ChatOpenAI
from langchain_community.tools.tavily_search import TavilySearchResults
from langchain_core.messages import AnyMessage
from langchain_core.messages.utils import count_tokens_approximately
from langgraph.graph import MessagesState
from langgraph.prebuilt.chat_agent_executor import create_react_agent, AgentState
from langgraph.checkpoint.memory import InMemorySaver
from langmem.short_term import SummarizationNode, RunningSummary
class State(MessagesState):
context: dict[str, Any]
search = TavilySearchResults(max_results=3)
tools = [search]
model = ChatOpenAI(model="gpt-4o")
summarization_model = model.bind(max_tokens=256)
summarization_node = SummarizationNode(
token_counter=count_tokens_approximately,
model=summarization_model,
max_tokens=2048,
max_summary_tokens=256,
output_messages_key="messages"
# output_messages_key="llm_input_messages"
)
checkpointer = InMemorySaver()
class State(AgentState):
user_language: str
# summarization-related keys
context: dict[str, Any]
def prompt(state):
language = state["user_language"]
system_msg = f"Always respond in {language}"
return [{"role": "system", "content": system_msg}] + state["messages"]
graph = create_react_agent(
model,
tools,
prompt=prompt,
pre_model_hook=summarization_node,
state_schema=State,
checkpointer=checkpointer
)
```
2025-04-02 15:41:31 +00:00
Nuno Campos
49bb08a3f9
Update prebuilt test
2025-03-27 17:58:29 -07:00
Vadym Barda and GitHub
e981d27f84
prebuilt: release 0.1.7 ( #4034 )
2025-03-26 09:22:09 -04:00
Vadym Barda and GitHub
71db4f2ad5
prebuilt: ignore updates when combining parent commands with Send ( #4033 )
2025-03-26 09:20:37 -04:00
Vadym Barda and GitHub
f36b7f61fb
prebuilt: release 0.1.6 ( #4020 )
2025-03-25 15:49:02 -04:00
Vadym Barda and GitHub
4095f0a927
prebuilt: only combine Command.PARENT for Send gotos in ToolNode ( #4019 )
2025-03-25 15:47:46 -04:00
Vadym Barda and GitHub
af7515c37a
prebuilt: release 0.1.5 ( #4015 )
2025-03-25 13:52:35 -04:00
Vadym Barda and GitHub
b97cda4290
prebuilt: add support for multiple Command(graph=Command.PARENT) returned by tools ( #4003 )
2025-03-25 13:51:05 -04:00
Nuno Campos
2ee5b8e9d1
Bump
2025-03-24 09:03:23 -07:00
Nuno Campos
037d9d1402
Lock
2025-03-24 07:49:24 -07:00
Vadym Barda and GitHub
8e922b859c
prebuilt: release 0.1.4 ( #3977 )
2025-03-21 12:05:15 -04:00
Vadym Barda and GitHub
9a4c30135f
prebuilt: pass last message to structured response model in create_react_agent ( #3976 )
2025-03-21 11:58:27 -04:00
6342cd1665
prebuilt: fix typo and simplify functions of examples in chat_agent_executor.py. ( #3827 )
...
**Description:**
Fix typo and simplify functions of examples.
**Issue:**
N/A
**Dependencies:**
N/A
**Dependencies:**
N/A
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-03-13 15:32:25 -04:00
Vadym Barda and GitHub
048eff9f11
prebuilt: release 0.1.3 ( #3830 )
2025-03-13 11:46:58 -04:00
ccurme and GitHub
8a2765c8f2
prebuilt: update type annotation for tools ( #3829 )
2025-03-13 15:45:44 +00:00
Alexey Bondarenko and GitHub
7f803df586
Add state schemas to __all__ in chat_agent_executor.py ( #3798 )
2025-03-12 17:54:18 +00:00
3183146141
prebuilt: allow pydantic model as state schema in create_react_agent ( #3559 )
...
Inherited attributes where not considered.
Pydantic model can inherit from other pydantic models. In those cases,
inherited attributes where not considered in the check and the code
fails.
---------
Co-authored-by: vbarda <vadym@langchain.dev >
2025-03-07 16:49:51 -05:00
Vadym Barda and GitHub
88e7868885
prebuilt: release 0.1.2 ( #3708 )
2025-03-05 21:40:58 -05:00
Vadym Barda and GitHub
e8dd682320
prebuilt: allow passing RunnableSequence as a model ( #3706 )
2025-03-06 02:37:55 +00:00
Vadym Barda and GitHub
745eb90a6d
prebuilt: remove langgraph dependency ( #3620 )
2025-02-27 09:41:43 -05:00
Vadym Barda and GitHub
3778f6113c
prebuilt: release 0.1.0 ( #3610 )
2025-02-26 18:48:03 -05:00
Vadym Barda and GitHub
24c13c211e
langgraph: separate prebuilt into a standalone package ( #3589 )
2025-02-26 18:33:07 -05:00