Agent knowledge
get_agent_knowledgePlatform rules for the agent, as short lines to put into your prompt. Call it once and cache it by rev; re-read when the platform pokes you or when your fallback poll comes due. Without ids you get ALL active rules for the audience, short form only — YOU pick which ones belong in a given answer (no more than three fit a prompt). With ids you get the full text of those rules instead, including RETIRED ones, flagged retired: true — so your log of «which rules were in this answer» stays readable after a rule is switched off weeks later. Ask for up to 50 ids at once: three is what fits a PROMPT, a review screen needs more. off. A retired rule must never go back into a prompt. If this door is silent, answer without rules: that is the normal state and must change nothing in your behaviour.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Ids of rules whose FULL text you need — up to 50 per call (that is a review screen, not the whole knowledge base; call without `ids` for all active rules). Retired rules are returned too, flagged. An id that is a valid uuid but no longer exists is simply ABSENT from the answer — compare lengths, one dead id never costs you the other texts. A string that is NOT a uuid is different: it fails the whole call with `validation_failed` naming its position (`ids.1`), so filter your ids by uuid shape before calling if they come from a log. | |
| audience | No | Which agent asks. Defaults to widget. Rules marked for both arrive in either case. |