create dedicated documentation for nostream tag#2916
Conversation
|
Mintlify preview ID generated: preview-naomid-1772638260-f3b1cc6 |
9caaa6b to
3d3a8ba
Compare
|
Mintlify preview ID generated: preview-naomid-1772638854-b9dfa50 |
|
Mintlify preview ID generated: preview-naomid-1772639696-82e1504 |
|
Mintlify preview ID generated: preview-naomid-1772640292-7a86a09 |
434522b to
17a4c65
Compare
17a4c65 to
cd21f58
Compare
|
Mintlify preview ID generated: preview-naomid-1772643850-bf75eb9 |
…-for-nostream-tag
|
Mintlify preview ID generated: preview-naomid-1772798439-b1e1147 |
|
Mintlify preview ID generated: preview-naomid-1772799020-1e2e553 |
| "public_response": "", | ||
| "internal_analysis": "", | ||
| } | ||
| stream = graph.stream(cast("Any", initial_state), stream_mode="messages") |
There was a problem hiding this comment.
we should never do this cast in docs, why is this here?
There was a problem hiding this comment.
linter was unhappy without it, let me try to remove it
Sydney Runkle (sydney-runkle)
left a comment
There was a problem hiding this comment.
are we using scripts now for inline snippets? why?
|
Mintlify preview ID generated: preview-naomid-1773073478-6a32904 |
Sydney Runkle (sydney-runkle)
left a comment
There was a problem hiding this comment.
should we show output? should we show a more simple snippet in the docs?
|
Since the output is that nothing is being streamed I'm not sure it's strictly needed but we could add it. What are you thinking for a simpler snippet? Just the config? |
|
Mintlify preview ID generated: preview-naomid-1775136072-ecb3d68 |
5f9fada to
42b732b
Compare
…-for-nostream-tag
|
Mintlify preview ID generated: preview-naomid-1775136670-6af6660 |
| ) | ||
|
|
||
| initial_state: State = {"topic": "AI", "answer": "", "notes": ""} | ||
| stream = graph.stream(initial_state, stream_mode="messages") # type: ignore[arg-type] |
There was a problem hiding this comment.
shouldn't have to use type ignore
There was a problem hiding this comment.
can we build this into agents.md or something that it should flag and try to correct
|
Mintlify preview ID generated: preview-naomid-1775141729-d6fd171 |
https://langchain-5e9cc07a-preview-naomid-1772799020-1e2e553.mintlify.app/oss/python/langgraph/streaming#omit-messages-from-the-stream