Gemini CLI Core - Core functionality library for the open-source AI agent that brings the power of Gemini directly into your terminal.
Overall
score
87%
Evaluation — 87%
↑ 1.01xAgent success when using this tile
A TypeScript library that validates AI agent tool calls using external checker programs before execution. The library runs external programs to validate tool calls and returns whether they should be allowed or blocked.
External checkers are executable programs that:
{"decision": "allow" | "block", "reason": "..."}The validation pipeline should:
{"decision": "block", "reason": "sensitive file"}, the validation result decision is "block" @test{"decision": "allow"}, the validation result decision is "allow" @test@generates
/**
* Configuration for an external safety checker
*/
interface CheckerConfig {
name: string;
path: string;
timeout: number;
}
/**
* Tool invocation details
*/
interface ToolInvocation {
toolName: string;
params: any;
}
/**
* Validation result
*/
interface ValidationResult {
decision: 'allow' | 'block';
reason?: string;
blockedBy?: string; // Name of checker that blocked
}
/**
* Main validation pipeline class
*/
export class ValidationPipeline {
constructor(checkers: CheckerConfig[]);
/**
* Validate a tool invocation using all configured checkers
*/
validate(invocation: ToolInvocation): Promise<ValidationResult>;
}Provides the tool system types and interfaces for AI agent tool execution.
Install with Tessl CLI
npx tessl i tessl/npm-google--gemini-cli-coredocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10