This repository was archived by the owner on Jun 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
docs: comprehensive documentation audit and fixes #79
Open
zrosenbauer
wants to merge
1
commit into
main
Choose a base branch
from
docs/comprehensive-audit
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,9 @@ coverage/ | |
| # GG | ||
| .gg/ | ||
|
|
||
| # Scratchpad | ||
| scratchpad/ | ||
|
|
||
| # OS files | ||
| .DS_Store | ||
| Thumbs.db | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,7 +42,7 @@ sequenceDiagram | |
| end | ||
|
|
||
| C->>C: await result.output | ||
| C->>C: await result.messages | ||
| C->>C: await result.response | ||
| ``` | ||
|
|
||
| ## Key Concepts | ||
|
|
@@ -53,21 +53,23 @@ Returned by `.stream()` inside a `Result` wrapper. The `fullStream` is available | |
|
|
||
| ```ts | ||
| interface StreamResult<TOutput = string> { | ||
| output: Promise<TOutput>; | ||
| messages: Promise<Message[]>; | ||
| usage: Promise<TokenUsage>; | ||
| finishReason: Promise<string>; | ||
| fullStream: AsyncIterableStream<StreamPart>; | ||
| output: PromiseLike<TOutput>; // resolves after stream completes | ||
| usage: Promise<LanguageModelUsage>; // resolves after stream completes | ||
| finishReason: Promise<string>; // resolves after stream completes | ||
| textStream: AsyncIterableStream<string>; // live text deltas | ||
| fullStream: AsyncIterableStream<StreamPart>; // all stream parts (text, tool calls, etc.) | ||
|
Comment on lines
+59
to
+60
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify docs claim `textStream` and source type does not define it.
rg -n 'textStream|interface StreamResult|BaseStreamResult' packages/agents/docs/advanced/streaming.md packages/agents/src/core/agents/types.ts -C2Repository: joggrdocs/funkai Length of output: 2562 Remove The docs claim FixRemove interface StreamResult<TOutput = string> {
output: PromiseLike<TOutput>; // resolves after stream completes
usage: Promise<LanguageModelUsage>; // resolves after stream completes
finishReason: Promise<string>; // resolves after stream completes
- textStream: AsyncIterableStream<string>; // live text deltas
fullStream: AsyncIterableStream<StreamPart>; // all stream parts (text, tool calls, etc.)
response: Promise<Response>; // resolves after stream completes (includes messages)
}-| `textStream` | `AsyncIterableStream<string>` | Immediately |
| `fullStream` | `AsyncIterableStream<StreamPart>` | Immediately |🤖 Prompt for AI Agents |
||
| response: Promise<Response>; // resolves after stream completes (includes messages) | ||
| } | ||
| ``` | ||
|
|
||
| | Field | Type | When Available | | ||
| | -------------- | --------------------------------- | ---------------------- | | ||
| | `textStream` | `AsyncIterableStream<string>` | Immediately | | ||
| | `fullStream` | `AsyncIterableStream<StreamPart>` | Immediately | | ||
| | `output` | `Promise<TOutput>` | After stream completes | | ||
| | `messages` | `Promise<Message[]>` | After stream completes | | ||
| | `usage` | `Promise<TokenUsage>` | After stream completes | | ||
| | `output` | `PromiseLike<TOutput>` | After stream completes | | ||
| | `usage` | `Promise<LanguageModelUsage>` | After stream completes | | ||
| | `finishReason` | `Promise<string>` | After stream completes | | ||
| | `response` | `Promise<Response>` | After stream completes | | ||
|
|
||
| ### StreamPart Events | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: joggrdocs/funkai
Length of output: 1458
🏁 Script executed:
Repository: joggrdocs/funkai
Length of output: 11742
TypeScript version mismatch between documentation and actual lockfile.
Lines 11 and 141 claim TypeScript
^6.0.3(minimum6.0.x), butpnpm-lock.yamlshowstypescript@5.9.3is installed. The documented standard is TypeScript 5.9. Either upgrade the dependency to match the documented requirement, or revert the documentation to^5.9.x.🤖 Prompt for AI Agents