| Description | : Creates a new agent or updates an agent if it already exists. |
| Reference | : Link ¶ |
⚼ Request
PUT:
/agents('{agentName}')
{
agentName:
string
,
KnowledgeAgent:
{
,
name:
string
,
models:
[
]
,
{
,
kind:
enum
,
}
knowledgeSources:
[
]
,
{
,
name:
string
,
includeReferences:
boolean
,
includeReferenceSourceData:
boolean
,
alwaysQuerySource:
boolean
,
maxSubQueries:
integer
,
rerankerThreshold:
number
,
}
outputConfiguration:
{
,
modality:
enum
,
answerInstructions:
string
,
attemptFastPath:
boolean
,
includeActivity:
boolean
,
}
requestLimits:
{
,
maxRuntimeInSeconds:
integer
,
maxOutputSize:
integer
,
}
retrievalInstructions:
string
,
@odata.etag:
string
,
encryptionKey:
{
,
keyVaultKeyName:
string
,
keyVaultKeyVersion:
string
,
keyVaultUri:
string
,
accessCredentials:
{
,
applicationId:
string
,
applicationSecret:
string
,
}
identity:
}
{
,
@odata.type:
string
,
}
description:
string
,
}
x-ms-client-request-id:
string
,
If-Match:
string
,
If-None-Match:
string
,
Prefer:
string
,
api-version:
string
,
}
⚐ Response (200)
{
name:
string
,
models:
[
]
,
{
,
kind:
enum
,
}
knowledgeSources:
[
]
,
{
,
name:
string
,
includeReferences:
boolean
,
includeReferenceSourceData:
boolean
,
alwaysQuerySource:
boolean
,
maxSubQueries:
integer
,
rerankerThreshold:
number
,
}
outputConfiguration:
{
,
modality:
enum
,
answerInstructions:
string
,
attemptFastPath:
boolean
,
includeActivity:
boolean
,
}
requestLimits:
{
,
maxRuntimeInSeconds:
integer
,
maxOutputSize:
integer
,
}
retrievalInstructions:
string
,
@odata.etag:
string
,
encryptionKey:
{
,
keyVaultKeyName:
string
,
keyVaultKeyVersion:
string
,
keyVaultUri:
string
,
accessCredentials:
{
,
applicationId:
string
,
applicationSecret:
string
,
}
identity:
}
{
,
@odata.type:
string
,
}
description:
string
,
}
⚐ Response (201)
{
name:
string
,
models:
[
]
,
{
,
kind:
enum
,
}
knowledgeSources:
[
]
,
{
,
name:
string
,
includeReferences:
boolean
,
includeReferenceSourceData:
boolean
,
alwaysQuerySource:
boolean
,
maxSubQueries:
integer
,
rerankerThreshold:
number
,
}
outputConfiguration:
{
,
modality:
enum
,
answerInstructions:
string
,
attemptFastPath:
boolean
,
includeActivity:
boolean
,
}
requestLimits:
{
,
maxRuntimeInSeconds:
integer
,
maxOutputSize:
integer
,
}
retrievalInstructions:
string
,
@odata.etag:
string
,
encryptionKey:
{
,
keyVaultKeyName:
string
,
keyVaultKeyVersion:
string
,
keyVaultUri:
string
,
accessCredentials:
{
,
applicationId:
string
,
applicationSecret:
string
,
}
identity:
}
{
,
@odata.type:
string
,
}
description:
string
,
}
⚐ Response (default)
{
error:
}
{
,
code:
string
,
message:
string
,
target:
string
,
details:
[
,
string
,
]
additionalInfo:
}
[
]
,
{
,
type:
string
,
info:
object
,
}