Skip to content

Commit

Permalink
Rewrite imports
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Sep 22, 2024
1 parent d9854b3 commit 30b631a
Show file tree
Hide file tree
Showing 6 changed files with 286 additions and 286 deletions.
558 changes: 279 additions & 279 deletions docs/docs/how-tos/map-reduce.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/docs/reference/graphs.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ handler: python

## StreamMode

::: langgraph.pregel.types.StreamMode
::: langgraph.types.StreamMode

## Constants

Expand Down
2 changes: 1 addition & 1 deletion libs/langgraph/langgraph/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class Send:
... subjects: list[str]
... jokes: Annotated[list[str], operator.add]
...
>>> from langgraph.constants import Send
>>> from langgraph.types import Send
>>> from langgraph.graph import END, START
>>> def continue_to_jokes(state: OverallState):
... return [Send("generate_joke", {"subject": s}) for s in state['subjects']]
Expand Down
4 changes: 2 additions & 2 deletions libs/langgraph/tests/test_pregel.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
CheckpointTuple,
)
from langgraph.checkpoint.memory import MemorySaver
from langgraph.constants import ERROR, PULL, PUSH, Interrupt, Send
from langgraph.constants import ERROR, PULL, PUSH
from langgraph.errors import InvalidUpdateError, NodeInterrupt
from langgraph.graph import END, Graph
from langgraph.graph.graph import START
Expand All @@ -71,7 +71,7 @@
)
from langgraph.pregel.retry import RetryPolicy
from langgraph.store.memory import MemoryStore
from langgraph.types import PregelTask, StreamWriter
from langgraph.types import Interrupt, PregelTask, Send, StreamWriter
from tests.any_str import AnyDict, AnyStr, AnyVersion, UnsortedSequence
from tests.conftest import ALL_CHECKPOINTERS_SYNC, SHOULD_CHECK_SNAPSHOTS
from tests.fake_chat import FakeChatModel
Expand Down
4 changes: 2 additions & 2 deletions libs/langgraph/tests/test_pregel_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
CheckpointTuple,
)
from langgraph.checkpoint.memory import MemorySaver
from langgraph.constants import ERROR, PULL, PUSH, Interrupt, Send
from langgraph.constants import ERROR, PULL, PUSH
from langgraph.errors import InvalidUpdateError, NodeInterrupt
from langgraph.graph import END, Graph, StateGraph
from langgraph.graph.graph import START
Expand All @@ -69,7 +69,7 @@
)
from langgraph.pregel.retry import RetryPolicy
from langgraph.store.memory import MemoryStore
from langgraph.types import PregelTask, StreamWriter
from langgraph.types import Interrupt, PregelTask, Send, StreamWriter
from tests.any_str import AnyDict, AnyStr, AnyVersion, UnsortedSequence
from tests.conftest import (
ALL_CHECKPOINTERS_ASYNC,
Expand Down
2 changes: 1 addition & 1 deletion libs/scheduler-kafka/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ You can pass any of the following values as `kwargs` to either `KafkaOrchestrato

- batch_max_n (int): Maximum number of messages to include in a single batch. Default: 10.
- batch_max_ms (int): Maximum time in milliseconds to wait for messages to include in a batch. Default: 1000.
- retry_policy (langgraph.pregel.types.RetryPolicy): Controls which graph-level errors will be retried when processing messages. A good use for this is to retry database errors thrown by the checkpointer. Defaults to None.
- retry_policy (langgraph.types.RetryPolicy): Controls which graph-level errors will be retried when processing messages. A good use for this is to retry database errors thrown by the checkpointer. Defaults to None.

### Connection settings

Expand Down

0 comments on commit 30b631a

Please sign in to comment.