Preparing search index...
The search index is not available
@google/genai
@google/genai
gaos/funcs/agents-create
agentsCreate
Function agentsCreate
agentsCreate
(
client
:
GoogleGenAICore
,
body
:
Agent
,
api_version
?:
string
,
options
?:
RequestOptions
,
)
:
APIPromise
<
Result
<
Agent
,
|
UnexpectedClientError
|
InvalidRequestError
|
RequestAbortedError
|
RequestTimeoutError
|
ConnectionError
|
GoogleGenAiError
,
>
,
>
Creates a new Agent (Typed version for SDK).
Parameters
client
:
GoogleGenAICore
body
:
Agent
Optional
api_version
:
string
Optional
options
:
RequestOptions
Returns
APIPromise
<
Result
<
Agent
,
|
UnexpectedClientError
|
InvalidRequestError
|
RequestAbortedError
|
RequestTimeoutError
|
ConnectionError
|
GoogleGenAiError
,
>
,
>
Settings
Theme
OS
Light
Dark
@google/genai
Loading...
Creates a new Agent (Typed version for SDK).