chore(vendor): bump tinyagents — V1 perf + V2 reasoning#4502
Conversation
…_key fold) Bumps vendor/tinyagents ac73382 -> f5e9021, pulling in two non-breaking agent-loop performance fixes (V1, doc 04 §2-3): - Tool schemas are built once per run instead of rebuilt + re-sorted every loop iteration. - The response-cache key is folded incrementally per message/tool/envelope component instead of via a full serde round-trip over the whole request. No public crate API change; OpenHuman core builds unchanged. Submodule branch: feat/perf-schema-cache-and-cache-key (PR to tinyhumansai/tinyagents to follow). Ref: docs/tinyagents-vendor-improvement-plan/07-execution-order.md (V1)
Bumps vendor/tinyagents f5e9021 -> b815b48 (stacked on the V1 perf bump),
pulling in reasoning-end-to-end support (V2, doc 02):
- ContentBlock::Thinking { text, signature } / RedactedThinking { data }
(additively tagged; existing transcripts parse unchanged).
- OpenAI SSE parses reasoning deltas (reasoning_content / reasoning) instead
of hardcoding empty; StreamAccumulator + provider accumulator preserve them
as a leading Thinking block; ModelDelta carries reasoning to middleware.
- Usage.reasoning_tokens populated from completion_tokens_details ->
CostTotals.reasoning_cost priced from real numbers.
API changes are additive: no ModelDelta struct literals and no exhaustive
ContentBlock matches exist in OpenHuman (all use constructors/matches! with
wildcards), so the adapter builds unchanged. The convert.rs ProviderExtension
reasoning shim (ThinkingForwarder) still works and will be retired once this
bump ships in a release (doc 02 Step 6).
Ref: docs/tinyagents-vendor-improvement-plan/07-execution-order.md (V2)
Resolves the vendor/tinyagents gitlink conflict: upstream tinyhumansai#4499 bumped the vendored crate to 2f023e8 (tinyagents main incl. the langfuse observability commit), while this branch carried the V1 perf + V2 reasoning slices on the older ac73382 pin. Resolution rebases V1+V2 onto 2f023e8 and points the gitlink at the combined tip d7decf0, so the vendored crate carries both upstream's changes and V1/V2. Crate suite green (786 tests) on the combined state.
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 57 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. 📝 WalkthroughWalkthroughThis change updates the ChangesSubmodule Update
Estimated code review effort: 1 (Trivial) | ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 115abf3b00
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -1 +1 @@ | |||
| Subproject commit 2f023e8abf88781d934272c989b7ed7cb28c3615 | |||
| Subproject commit d7decf0cbffa8d3177a635c38f4d48c06eaf2fe4 | |||
There was a problem hiding this comment.
Point the submodule at a fetchable upstream commit
For fresh clones or CI jobs that run git submodule update --init, this gitlink now requires d7decf0, but .gitmodules fetches vendor/tinyagents from https://github.com/tinyhumansai/tinyagents and the commit message says this SHA currently exists only on the senamakel/tinyagents fork until the upstream PRs merge. That means checkout can fail before any build/test step can run; please repoint the gitlink to a commit reachable from the configured submodule remote or update the submodule remote in the same change.
Useful? React with 👍 / 👎.
Summary
Bumps the vendored
tinyagentscrate to carry the V1 perf and V2reasoning slices on top of the current upstream pin. Net diff vs
mainis asingle gitlink line:
vendor/tinyagents 2f023e8 → d7decf0.d7decf0= current upstream tinyagentsmain(2f023e8) + 5 commits:cache_keyfold. → perf(harness): cache tool schemas per run + incremental cache_key fold tinyagents#14
ContentBlock::Thinking/RedactedThinking, OpenAI SSEreasoning-delta parsing, reasoning preserved through the accumulator +
ModelDelta,Usage.reasoning_tokensfromcompletion_tokens_details.→ feat(reasoning): thinking blocks, reasoning stream/persist, reasoning tokens tinyagents#15
All API changes are additive; the OpenHuman adapter needs no edits (no
ModelDeltaliterals, no exhaustiveContentBlockmatches — verified). Corecargo checkbuilds green againstd7decf0.d7decf0currently lives only on thesenamakel/tinyagentsfork. CI'sgit submodule updatefromtinyhumansai/tinyagentscannot resolve it until feat: replace optimistic message removal with error response handling #14/feat: add Developer Options panel with tools for skills, AI configura… #15 merge. Once theyland I'll re-point this gitlink to the merged upstream SHA and mark ready.
--no-verify): the hook'spnpm compilefails on missing frontend deps (
@xyflow/react,rehype-highlight,remark-gfm) introduced by the upstream merge — a localpnpm installgap,unrelated to this one-line gitlink change. CI installs deps and validates.
Merge context
This branch merged current
upstream/main(incl. #4499 langfuse, which hadbumped
tinyagentsto2f023e8andtinyflowsto438f8fc); thevendor/tinyagentsgitlink conflict was resolved by rebasing V1+V2 onto2f023e8.Ref:
docs/tinyagents-vendor-improvement-plan/07-execution-order.md(V1, V2).Summary by CodeRabbit