refactor: native any llm minimal and thinking printer#235
Open
PsiACE wants to merge 4 commits into
Open
Conversation
PsiACE
commented
Jun 14, 2026
Collaborator
- The builtin agent now reads any-llm reasoning output directly and emits StreamEvent("reasoning", ...).
- Removed custom OpenAI-style streamed tool-call aggregation from the agent.
- Added reasoning to runtime stream event kinds.
- Added a local CLI ,thinking toggle:
- collapse by default: shows thinking status and hidden character count.
- expand: streams thinking content visibly.
- Preserved existing CLI text/final streaming behavior.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bub | 82010bb | Commit Preview URL Branch Preview URL |
Jun 15 2026, 04:02 AM |
frostming
reviewed
Jun 15, 2026
|
|
||
| text = "".join(text_parts) | ||
| resolved_tool_calls = tool_calls.as_list() | ||
| assistant_message = response.choices[0].message if response is not None else None |
Collaborator
There was a problem hiding this comment.
Where does it handle toolcalls for stream output?
Collaborator
Author
There was a problem hiding this comment.
I haven't given much thought to how to handle this gracefully in the streaming process. since there was no native state management, I considered abandoning it. but.......
so its a bug....
fixed with 82010bb , need carefully check, i tested it with qwen-max and tool call in stream worked.
frostming
reviewed
Jun 15, 2026
frostming
reviewed
Jun 15, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.