Preparing search index...
The search index is not available
@google/genai
@google/genai
gaos/funcs/interactions-create
interactionsCreate
Function interactionsCreate
interactionsCreate
(
client
:
GoogleGenAICore
,
body
:
CreateInteractionRequestBody
&
{
stream
?:
false
}
,
api_version
?:
string
,
options
?:
RequestOptions
,
)
:
APIPromise
<
Result
<
CreateInteractionResponse
,
|
UnexpectedClientError
|
InvalidRequestError
|
RequestAbortedError
|
RequestTimeoutError
|
ConnectionError
|
GoogleGenAiError
|
CreateInteractionServerError
|
CreateInteractionClientError
,
>
,
>
Creating an interaction
Parameters
client
:
GoogleGenAICore
body
:
CreateInteractionRequestBody
&
{
stream
?:
false
}
Optional
api_version
:
string
Optional
options
:
RequestOptions
Returns
APIPromise
<
Result
<
CreateInteractionResponse
,
|
UnexpectedClientError
|
InvalidRequestError
|
RequestAbortedError
|
RequestTimeoutError
|
ConnectionError
|
GoogleGenAiError
|
CreateInteractionServerError
|
CreateInteractionClientError
,
>
,
>
Remarks
Creates a new interaction.
interactionsCreate
(
client
:
GoogleGenAICore
,
body
:
CreateInteractionRequestBody
&
{
stream
:
true
}
,
api_version
?:
string
,
options
?:
RequestOptions
,
)
:
APIPromise
<
Result
<
CreateInteractionResponse
,
|
UnexpectedClientError
|
InvalidRequestError
|
RequestAbortedError
|
RequestTimeoutError
|
ConnectionError
|
GoogleGenAiError
|
CreateInteractionServerError
|
CreateInteractionClientError
,
>
,
>
Creating an interaction
Parameters
client
:
GoogleGenAICore
body
:
CreateInteractionRequestBody
&
{
stream
:
true
}
Optional
api_version
:
string
Optional
options
:
RequestOptions
Returns
APIPromise
<
Result
<
CreateInteractionResponse
,
|
UnexpectedClientError
|
InvalidRequestError
|
RequestAbortedError
|
RequestTimeoutError
|
ConnectionError
|
GoogleGenAiError
|
CreateInteractionServerError
|
CreateInteractionClientError
,
>
,
>
Remarks
Creates a new interaction.
interactionsCreate
(
client
:
GoogleGenAICore
,
body
:
CreateInteractionRequestBody
,
api_version
?:
string
,
options
?:
RequestOptions
,
)
:
APIPromise
<
Result
<
CreateInteractionResponse
,
|
UnexpectedClientError
|
InvalidRequestError
|
RequestAbortedError
|
RequestTimeoutError
|
ConnectionError
|
GoogleGenAiError
|
CreateInteractionServerError
|
CreateInteractionClientError
,
>
,
>
Creating an interaction
Parameters
client
:
GoogleGenAICore
body
:
CreateInteractionRequestBody
Optional
api_version
:
string
Optional
options
:
RequestOptions
Returns
APIPromise
<
Result
<
CreateInteractionResponse
,
|
UnexpectedClientError
|
InvalidRequestError
|
RequestAbortedError
|
RequestTimeoutError
|
ConnectionError
|
GoogleGenAiError
|
CreateInteractionServerError
|
CreateInteractionClientError
,
>
,
>
Remarks
Creates a new interaction.
Settings
Theme
OS
Light
Dark
@google/genai
Loading...
Creating an interaction