Deep Research Response • Rust AI Agent SDK

DeepResearchResponse: Complete response from a Deep Research query

DeepResearchResponse

Defined in the extras module.

Rust AI Agent SDK

Complete response from a Deep Research query

Fields

NameTypeDescription
reportStringThe final research report text
citationsVec<Citation>List of citations with source metadata
reasoning_stepsVec<ReasoningStep>List of reasoning steps taken
web_searchesVec<WebSearchCall>List of web search queries executed
code_executionsVec<CodeExecutionStep>List of code execution steps
file_searchesVec<FileSearchCall>List of file search calls (Gemini)
providerProviderThe provider used
interaction_idOption<String>Interaction ID (Gemini) or Response ID (OpenAI)

Methods

new

rust
fn new(report: impl Into<String>) -> Self

Create a new deep research response

Parameters:

NameType
reportimpl Into&lt;String&gt;

get_citation_text

rust
fn get_citation_text(&self, citation: &Citation) -> &str

Extract the text that a citation refers to

Parameters:

NameType
citation&Citation

get_all_sources

rust
fn get_all_sources(&self) -> Vec<HashMap<String, String>>

Get a list of all unique sources cited

Source

View on GitHub

praisonai/src/parity/extras.rs at line 161


Related Documentation