Answer from knowledge
Returns the answer an agent would give to a question, written only from its knowledge, with the passages it used. Send source_ids to search exactly those sources, or agent_id to search what that agent attaches; agent_id also gives the answer the agent’s own instructions. answered is false when the passages don’t contain the answer. When passages were found but no answer could be written in time, answer is null and error is answer_unavailable. Send instructions to try unsaved instructions instead of the agent’s saved prompt. Each workspace gets about 30 answers an hour; past that it’s a 429 with Retry-After.
Scopes: knowledge:read
Authorizations
Headers
Body
A question a caller might ask, answered the way the agent would from its knowledge.
source_ids, when sent, are exactly the sources searched (the editor's
ticked ones, saved or not); otherwise the agent's attached sources are.
agent_id also supplies the agent's own instructions for the answer.
Response
Successful Response