Skip to content

refactor: native any llm minimal and thinking printer#235

Open
PsiACE wants to merge 4 commits into
mainfrom
refactor/native-any-llm-minimal
Open

refactor: native any llm minimal and thinking printer#235
PsiACE wants to merge 4 commits into
mainfrom
refactor/native-any-llm-minimal

Conversation

@PsiACE

@PsiACE PsiACE commented Jun 14, 2026

Copy link
Copy Markdown
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.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 14, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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

Comment thread src/bub/builtin/agent.py

text = "".join(text_parts)
resolved_tool_calls = tool_calls.as_list()
assistant_message = response.choices[0].message if response is not None else None

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does it handle toolcalls for stream output?

@PsiACE PsiACE Jun 15, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/bub/channels/cli/__init__.py Outdated
Comment thread src/bub/channels/cli/__init__.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants