v4

latestOpenAPI 3.1.02026-08-07341215300.9 KB

Extract Citation

Extract the relevant excerpts from a tool_result that support a citation.

Given:

  • tool_result: The full data returned by a tool call
  • citation_id: The citation number (e.g., 1 for [1])
  • text_with_citation: The text that cites this data (e.g., "There are 3 errors [1]")

Returns:

  • excerpts: List of relevant chunks from tool_result that support the citation
post/api/extract-citation

Request body

tool_resultstring required
citation_idinteger required
text_with_citationstring required
team_idstring nullable

Response

Successful Response

excerptsstring[] required