mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-01 19:03:42 +00:00
30 lines
1.0 KiB
TypeScript
30 lines
1.0 KiB
TypeScript
/**
|
|
* @license
|
|
* Copyright 2026 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
import type { BaseLlmClient } from '../../core/baseLlmClient.js';
|
|
import type { ContextEventBus } from '../eventBus.js';
|
|
import type { ContextTokenCalculator } from '../utils/contextTokenCalculator.js';
|
|
import type { ContextTracer } from '../tracer.js';
|
|
import type { LiveInbox } from './inbox.js';
|
|
import type { NodeBehaviorRegistry } from '../graph/behaviorRegistry.js';
|
|
import type { ContextGraphMapper } from '../graph/mapper.js';
|
|
|
|
export type { ContextTracer, ContextEventBus };
|
|
|
|
export interface ContextEnvironment {
|
|
readonly llmClient: BaseLlmClient;
|
|
readonly promptId: string;
|
|
readonly sessionId: string;
|
|
readonly traceDir: string;
|
|
readonly projectTempDir: string;
|
|
readonly tracer: ContextTracer;
|
|
readonly charsPerToken: number;
|
|
readonly tokenCalculator: ContextTokenCalculator;
|
|
readonly eventBus: ContextEventBus;
|
|
readonly inbox: LiveInbox;
|
|
readonly behaviorRegistry: NodeBehaviorRegistry;
|
|
readonly graphMapper: ContextGraphMapper;
|
|
}
|