update_agent_knowledge_base¶
Operation¶
update_agent_knowledge_base
async
¶
update_agent_knowledge_base(input: UpdateAgentKnowledgeBaseInput, plugins: list[Plugin] | None = None) -> UpdateAgentKnowledgeBaseOutput
Updates the configuration for a knowledge base that has been associated with an agent.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
UpdateAgentKnowledgeBaseInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
UpdateAgentKnowledgeBaseOutput
|
An instance of |
Input¶
UpdateAgentKnowledgeBaseInput
dataclass
¶
Dataclass for UpdateAgentKnowledgeBaseInput structure.
Attributes¶
agent_id
class-attribute
instance-attribute
¶
agent_id: str | None = None
The unique identifier of the agent associated with the knowledge base that you want to update.
agent_version
class-attribute
instance-attribute
¶
agent_version: str | None = None
The version of the agent associated with the knowledge base that you want to update.
description
class-attribute
instance-attribute
¶
description: str | None = None
Specifies a new description for the knowledge base associated with an agent.
knowledge_base_id
class-attribute
instance-attribute
¶
knowledge_base_id: str | None = None
The unique identifier of the knowledge base that has been associated with an agent.
knowledge_base_state
class-attribute
instance-attribute
¶
knowledge_base_state: KnowledgeBaseState | None = None
Specifies whether the agent uses the knowledge base or not when sending an InvokeAgent request.
Output¶
UpdateAgentKnowledgeBaseOutput
dataclass
¶
Dataclass for UpdateAgentKnowledgeBaseOutput structure.
Attributes¶
agent_knowledge_base
instance-attribute
¶
agent_knowledge_base: AgentKnowledgeBase
Contains details about the knowledge base that has been associated with an agent.