ask_knowledge_agent
Ask a Knowledge Agent a question to get answers grounded in its documents, with citations and optional word-for-word passages. Use it when you need sourced responses or to verify document coverage.
Instructions
Ask a Knowledge Agent a question and get an answer from its documents, with citations.
Generative mode writes an answer. A sentence ending in a citation such as [1] is evidence: it was checked against passage 1, or is shown in the passage's exact words. A sentence without a citation is the agent's own reasoning. Referenced mode returns the cited passages word for word, with no model writing. When the documents do not cover the question, the agent says so.
"confidence" is CrowdSmart's retrieval score, from 0 to 1: how well the best passages match the question. It does not show whether the answer is right. "generation_source" says how the answer was produced (for example "corpus_extractive" or "abstained"). "knowledge_source" is "documents" unless general-knowledge backfill contributed. CrowdSmart records each question in the agent's query history.
Args: agent_id: Knowledge Agent ID, from list_knowledge_agents. question: The question to answer from the agent's documents. mode: "generative" or "referenced". Omit to use the agent's own setting. max_chunks: Number of passages to retrieve (default 5).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| agent_id | Yes | ||
| question | Yes | ||
| max_chunks | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||