Retrain an agent
agent_trainRebuild the agent's knowledge embeddings from its attached knowledge-base entries. Required after every kb_upsert or kb_attach, or the agent answers from stale material — this is the step most easily forgotten. It only re-indexes existing knowledge: it does not change the agent's instructions (agent_upsert) and does not teach it anything not attached via kb_attach. Requires the "Agents" permission on the plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | AI agent id, from `agent_list`. |