mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-07 10:17:50 +02:00
Lint
This commit is contained in:
@@ -113,9 +113,7 @@ class Branch(NamedTuple):
|
||||
if any(dest is None or dest == START for dest in destinations):
|
||||
raise ValueError("Branch did not return a valid destination")
|
||||
if any(p.node == END for p in destinations if isinstance(p, Packet)):
|
||||
raise InvalidUpdateError(
|
||||
"Cannot send a packet with keyword arguments to the END node"
|
||||
)
|
||||
raise InvalidUpdateError("Cannot send a packet to the END node")
|
||||
return writer(destinations) or input
|
||||
|
||||
|
||||
|
||||
@@ -68,17 +68,16 @@ def map_debug_tasks(
|
||||
if config is not None and TAG_HIDDEN in config.get("tags", []):
|
||||
continue
|
||||
|
||||
payload = {
|
||||
"id": str(uuid5(TASK_NAMESPACE, json.dumps((name, step, idx)))),
|
||||
"name": name,
|
||||
"input": input,
|
||||
"triggers": triggers,
|
||||
}
|
||||
yield {
|
||||
"type": "task",
|
||||
"timestamp": ts,
|
||||
"step": step,
|
||||
"payload": payload,
|
||||
"payload": {
|
||||
"id": str(uuid5(TASK_NAMESPACE, json.dumps((name, step, idx)))),
|
||||
"name": name,
|
||||
"input": input,
|
||||
"triggers": triggers,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, Callable, Dict, Mapping, Optional, Sequence, Union
|
||||
from typing import Any, Callable, Mapping, Optional, Sequence, Union
|
||||
|
||||
from langchain_core.pydantic_v1 import Field
|
||||
from langchain_core.runnables import (
|
||||
|
||||
Reference in New Issue
Block a user