Agents

Bind knowledge bases to an agent

Replace the agent's knowledge base bindings (with per-base retrieval weights). Omni sessions opened with session_label equal to this agent's id ground against these; sessions without an agent profile use the org defaults (/v1/knowledgebases/default). Requires the omni:session scope.

put/v1/agents/{id}/knowledgebases

Request

  • Base URL: https://api.pyai.com
  • URL: https://api.pyai.com/v1/agents/{id}/knowledgebases
  • Auth: one of:
    • HTTP bearer
    • API key in header x-api-key

Path parameters

idstring required

Request body

kb_idstring required

Knowledge base id.

weightnumber

Retrieval weight relative to other bound bases.

Response

The agent's knowledge base bindings

Changes

No recorded changes to this operation across all 1 revision of this API.