Skip to content

Perf concurrent tool calls 340799266580957744#187

Open
Pet3cy wants to merge 7 commits intoactions:mainfrom
Pet3cy:perf-concurrent-tool-calls-340799266580957744
Open

Perf concurrent tool calls 340799266580957744#187
Pet3cy wants to merge 7 commits intoactions:mainfrom
Pet3cy:perf-concurrent-tool-calls-340799266580957744

Conversation

@Pet3cy
Copy link
Contributor

@Pet3cy Pet3cy commented Mar 10, 2026

No description provided.

google-labs-jules bot and others added 7 commits February 24, 2026 17:42
- Change core.info to core.debug for model responses in src/inference.ts
- Change core.info to core.debug for tool execution details in src/mcp.ts
- Change core.info to core.debug for custom header logging in src/helpers.ts
- Remove sensitive response previews from error messages in src/inference.ts
- Update tests to reflect changes from core.info to core.debug
…re-logs-8322086360319645856

🔒 [security fix] Fix sensitive data exposure in MCP Inference logs
Updated the regex in `src/helpers.ts` to allow all valid characters in an HTTP token (RFC 7230, section 3.2.6), including symbols like `_`, `.`, `!`, and `*`. Previously, the validation was overly restrictive, only allowing alphanumeric characters and hyphens.

Also updated the corresponding unit test in `__tests__/helpers.test.ts` to reflect the change.
…6518057682

🧹 Relax overly restrictive HTTP header name validation
Add test cases to verify that `parseFileTemplateVariables` correctly
throws an error when a non-string value (e.g. number, boolean, object)
is provided as a file path in the input YAML. This ensures the existing
validation is properly tested.

Co-authored-by: Pet3cy <169947521+Pet3cy@users.noreply.github.com>
…-template-variables-6142620025282989819

🧪 [testing improvement] validate non-string file paths in parseFileTemplateVariables
Replaced the sequential loop in `executeToolCalls` with `Promise.all()`
to execute multiple tool calls in parallel. This significantly reduces
total execution time when multiple tools are requested by the model.

Performance improvement measured: ~80% reduction in execution time for
5 tool calls (from ~500ms to ~100ms in benchmark).
@Pet3cy Pet3cy requested a review from a team as a code owner March 10, 2026 22:50
johan-j
johan-j previously approved these changes Mar 13, 2026
@Pet3cy Pet3cy dismissed johan-j’s stale review March 13, 2026 21:43

The merge-base changed after approval.

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