mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-08 10:47:52 +02:00
Lint
This commit is contained in:
@@ -122,3 +122,4 @@ def _is_field_binop(typ: Type[Any]) -> Optional[BinaryOperatorAggregate]:
|
||||
]
|
||||
):
|
||||
return BinaryOperatorAggregate(typ, meta[0])
|
||||
return None
|
||||
|
||||
@@ -104,7 +104,7 @@ class ChannelInvoke(RunnableBindingBase):
|
||||
when=when,
|
||||
bound=bound or default_bound,
|
||||
kwargs=kwargs or {},
|
||||
config=merge_configs(config, {"tags": tags}),
|
||||
config=merge_configs(config, {"tags": tags or []}),
|
||||
**other_kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -811,7 +811,7 @@ def test_conditional_graph_state() -> None:
|
||||
]
|
||||
)
|
||||
|
||||
def agent_parser(input: str) -> Union[AgentAction, AgentFinish]:
|
||||
def agent_parser(input: str) -> dict[str, Union[AgentAction, AgentFinish]]:
|
||||
if input.startswith("finish"):
|
||||
_, answer = input.split(":")
|
||||
return {
|
||||
|
||||
@@ -865,7 +865,7 @@ async def test_conditional_graph_state() -> None:
|
||||
]
|
||||
)
|
||||
|
||||
def agent_parser(input: str) -> Union[AgentAction, AgentFinish]:
|
||||
def agent_parser(input: str) -> dict[str, Union[AgentAction, AgentFinish]]:
|
||||
if input.startswith("finish"):
|
||||
_, answer = input.split(":")
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user