Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 22 additions & 23 deletions src/genai/types/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,27 +156,6 @@ export declare interface ReasoningEngineSpecPackageSpec {
requirementsGcsUri?: string;
}

/** Configuration for the Agent Development Kit (ADK). */
export declare interface ReasoningEngineSpecSourceCodeSpecAgentConfigSourceAdkConfig {
/** Required. The value of the ADK config in JSON format. */
jsonConfig?: Record<string, unknown>;
}

/** Specifies source code provided as a byte stream. */
export declare interface ReasoningEngineSpecSourceCodeSpecInlineSource {
/** Required. Input only. The application source code archive. It must be a compressed tarball (.tar.gz) file.
* @remarks Encoded as base64 string. */
sourceArchive?: string;
}

/** Specification for the deploying from agent config. */
export declare interface ReasoningEngineSpecSourceCodeSpecAgentConfigSource {
/** Required. The ADK configuration. */
adkConfig?: ReasoningEngineSpecSourceCodeSpecAgentConfigSourceAdkConfig;
/** Optional. Any additional files needed to interpret the config. If a `requirements.txt` file is present in the `inline_source`, the corresponding packages will be installed. If no `requirements.txt` file is present in `inline_source`, then the latest version of `google-adk` will be installed for interpreting the ADK config. */
inlineSource?: ReasoningEngineSpecSourceCodeSpecInlineSource;
}

/** Specifies the configuration for fetching source code from a Git repository that is managed by Developer Connect.

This includes the repository, revision, and directory to use. */
Expand All @@ -203,6 +182,13 @@ export declare interface ReasoningEngineSpecSourceCodeSpecImageSpec {
buildArgs?: Record<string, string>;
}

/** Specifies source code provided as a byte stream. */
export declare interface ReasoningEngineSpecSourceCodeSpecInlineSource {
/** Required. Input only. The application source code archive. It must be a compressed tarball (.tar.gz) file.
* @remarks Encoded as base64 string. */
sourceArchive?: string;
}

/** Specification for running a Python application from source. */
export declare interface ReasoningEngineSpecSourceCodeSpecPythonSpec {
/** Optional. The Python module to load as the entrypoint, specified as a fully qualified module name. For example: path.to.agent. If not specified, defaults to "agent". The project root will be added to Python sys.path, allowing imports to be specified relative to the root. This field should not be set if the source is `agent_config_source`. */
Expand All @@ -217,8 +203,6 @@ export declare interface ReasoningEngineSpecSourceCodeSpecPythonSpec {

/** Specification for deploying from source code. */
export declare interface ReasoningEngineSpecSourceCodeSpec {
/** Source code is generated from the agent config. */
agentConfigSource?: ReasoningEngineSpecSourceCodeSpecAgentConfigSource;
/** Source code is in a Git repository managed by Developer Connect. */
developerConnectSource?: ReasoningEngineSpecSourceCodeSpecDeveloperConnectSource;
/** Optional. Configuration for building an image with custom config file. */
Expand Down Expand Up @@ -1021,6 +1005,14 @@ export declare interface EventActions {
transferAgent?: string;
}

/** Audio transcription in Server Content. */
export declare interface Transcription {
/** Optional. Transcription text. */
text?: string;
/** Optional. The bool indicates the end of the transcription. */
finished?: boolean;
}

/** Metadata relating to a LLM response event. */
export declare interface EventMetadata {
/** Optional. Metadata returned to client when grounding is enabled. */
Expand All @@ -1037,6 +1029,10 @@ export declare interface EventMetadata {
partial?: boolean;
/** Optional. Indicates whether the response from the model is complete. Only used for streaming mode. */
turnComplete?: boolean;
/** Optional. Audio transcription of user input. */
inputTranscription?: Transcription;
/** Optional. Audio transcription of model output. */
outputTranscription?: Transcription;
}

/** Config for appending agent engine session event. */
Expand Down Expand Up @@ -1144,6 +1140,9 @@ export declare interface AgentEngine {
apiResource?: ReasoningEngine;
}

/** Specification for the deploying from agent config. */
export declare interface ReasoningEngineSpecSourceCodeSpecAgentConfigSource {}

/** Config for agent engine methods. */
export declare interface AgentEngineConfig {
/** Used to override HTTP request options. */
Expand Down
Loading