feat: Add conversation config
This commit is contained in:
@@ -67,7 +67,7 @@ class Agent:
|
||||
"""Expone el grafo para inspección en tests."""
|
||||
return self._build_agent()
|
||||
|
||||
def invoke(self, state: dict) -> dict:
|
||||
def invoke(self, state: dict, config: dict | None = None) -> dict:
|
||||
"""
|
||||
Ejecuta el agente con el estado inicial.
|
||||
|
||||
@@ -81,7 +81,7 @@ class Agent:
|
||||
if "messages" not in state:
|
||||
raise ValueError("State must contain 'messages' key")
|
||||
|
||||
return self._compiled_agent.invoke(state)
|
||||
return self._compiled_agent.invoke(state, config=config)
|
||||
|
||||
def stream(self, state: dict):
|
||||
"""Streaming de la ejecución para debugging."""
|
||||
|
||||
Reference in New Issue
Block a user