Make several changes to guide the model to request absolute paths, reducing frequent accidental relative path tool call failures. - Switch the parameter name: path --> absolute_path. - Update the tool definition to strongly require an absolute path. - Update the system prompt to indicate absolute paths are required. - Update the system prompt tool use examples to use absolute paths. Test case: Open GC in GC: "Locate the primary file calling genai" - Expected: Model opens files with absolute path, successfully. - Actual (pre-patch): Failure, attempts to read with relative path. - Actual (post-patch): Success, attempts to read with absolute path. |
||
---|---|---|
.. | ||
src | ||
README.md | ||
index.ts | ||
package-lock.json | ||
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-cli/core"
to the dependent package'spackage.json
- Import a dependency by calling
import { } from "@gemini-cli/core"