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
33 changes: 20 additions & 13 deletions src/interactions/resources/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class BaseInteractions extends APIResource {
* @example
* ```ts
* const interaction = await client.interactions.create({
* api_version: 'api_version',
* input: 'string',
* model: 'gemini-2.5-pro',
* });
Expand Down Expand Up @@ -69,7 +70,9 @@ export class BaseInteractions extends APIResource {
*
* @example
* ```ts
* const interaction = await client.interactions.delete('id');
* const interaction = await client.interactions.delete('id', {
* api_version: 'api_version',
* });
* ```
*/
delete(
Expand All @@ -86,7 +89,9 @@ export class BaseInteractions extends APIResource {
*
* @example
* ```ts
* const interaction = await client.interactions.cancel('id');
* const interaction = await client.interactions.cancel('id', {
* api_version: 'api_version',
* });
* ```
*/
cancel(
Expand All @@ -103,7 +108,9 @@ export class BaseInteractions extends APIResource {
*
* @example
* ```ts
* const interaction = await client.interactions.get('id');
* const interaction = await client.interactions.get('id', {
* api_version: 'api_version',
* });
* ```
*/
get(
Expand Down Expand Up @@ -1626,6 +1633,11 @@ export type InteractionCreateParams =
| CreateAgentInteractionParamsStreaming;

export interface BaseCreateModelInteractionParams {
/**
* Path param: Which version of the API to use.
*/
api_version?: string;

/**
* Body param: The inputs for the interaction.
*/
Expand Down Expand Up @@ -1657,11 +1669,6 @@ export interface BaseCreateModelInteractionParams {
*/
model: Model;

/**
* Path param: Which version of the API to use.
*/
api_version?: string;

/**
* Body param: Input only. Whether to run the model interaction in the background.
*/
Expand Down Expand Up @@ -1715,6 +1722,11 @@ export interface BaseCreateModelInteractionParams {
}

export interface BaseCreateAgentInteractionParams {
/**
* Path param: Which version of the API to use.
*/
api_version?: string;

/**
* Body param: The name of the `Agent` used for generating the interaction.
*/
Expand Down Expand Up @@ -1746,11 +1758,6 @@ export interface BaseCreateAgentInteractionParams {
| FileSearchCallContent
| FileSearchResultContent;

/**
* Path param: Which version of the API to use.
*/
api_version?: string;

/**
* Body param: Configuration for the agent.
*/
Expand Down
Loading