Agents 1.4.0
Edge AI Agents SDK
Loading...
Searching...
No Matches
agents::tools::SearchResult Struct Reference

Structured search result item. More...

#include <web_search_tool.h>

Public Member Functions

JsonObject toJson () const
 Convert SearchResult to JsonObject.

Public Attributes

std::string title
 Title of the result.
std::string snippet
 Snippet or summary of the result.
std::string url
 URL of the result.
std::string source_name
 Source name (e.g., website or publication).
std::string date
 Date of the result (if available).
int position
 Position in the search results.

Detailed Description

Structured search result item.

Member Function Documentation

◆ toJson()

JsonObject agents::tools::SearchResult::toJson ( ) const
inline

Convert SearchResult to JsonObject.

Returns
JsonObject json representation of the SearchResult