- Implements cancellation for Gemini requests while they are actively being processed by the model. - Extends cancellation support to the logic within tools. This allows users to cancel operations during the phase where the system is determining if a tool execution requires user confirmation, which can include potentially long-running pre-flight checks or LLM-based corrections. - Underlying LLM calls for edit corrections (within and ) and next speaker checks can now also be cancelled. - Previously, cancellation of the main request was not possible until text started streaming, and pre-execution checks were not cancellable. - This change leverages the updated SDK's ability to accept an abort token and threads s throughout the request, tool execution, and pre-execution check lifecycle. Fixes https://github.com/google-gemini/gemini-cli/issues/531 |
||
---|---|---|
.. | ||
src | ||
README.md | ||
index.ts | ||
package.json | ||
tsconfig.json | ||
vitest.config.ts |
README.md
Nested package template. Either fill this out with "backend" functionality or create similar packages that you want built separate from the CLI.
To use this package from another dependent package in this monorepo:
- Add
"@gemini-code/server"
to the dependent package'spackage.json
- Import a dependency by calling
import { } from "@gemini-code/server"