@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
19 lines • 1.37 kB
TypeScript
import { type Api, type AssistantMessageEventStream, type Model, type SimpleStreamOptions, type TranscriptContext } from "@earendil-works/pi-ai";
import { type VertexAdcAccess } from "@earendil-works/pi-ai/api/google-vertex-adc.lazy";
export declare const VERTEX_MODEL_GARDEN_LOCATION = "global";
/**
* The registration baseUrl. It only satisfies registration: while a model still carries it, the request URL is
* built per call from the ADC-resolved project. Any other value is the user's models.json baseUrl (senpi#4765).
*/
export declare const VERTEX_MODEL_GARDEN_REGISTRATION_BASE_URL = "https://aiplatform.googleapis.com/v1";
export type ResolveVertexAccess = (options?: SimpleStreamOptions) => Promise<VertexAdcAccess>;
/**
* The project comes from its own environment (`options.env`, then the ADC quota
* project, then `getProjectId()`), never from the API-key slot: a stored secret
* must not end up in the request URL, and the project may legitimately come from
* ADC alone.
*/
export declare const defaultResolveVertexAccess: ResolveVertexAccess;
export declare function vertexHost(location: string): string;
export declare function streamVertexModelGarden(model: Model<Api>, context: TranscriptContext, options: SimpleStreamOptions | undefined, resolveAccess?: ResolveVertexAccess): AssistantMessageEventStream;
//# sourceMappingURL=transport.d.ts.map