Spaces:
Build error
Build error
Download src/meta_search/models.rs from LuckyMod/intentforge: direct link, hf CLI and curl.
- Browser
- Download file 825 Bytes
-
https://huggingface.co/spaces/LuckyMod/intentforge/resolve/main/src/meta_search/models.rs
- Command line
-
hf download hf://spaces/LuckyMod/intentforge/src/meta_search/models.rs
-
curl -L -o models.rs https://huggingface.co/spaces/LuckyMod/intentforge/resolve/main/src/meta_search/models.rs
825 Bytes
| use serde::{Deserialize, Serialize}; | |
| /// A single search result from any provider. | |
| pub struct SearchResult { | |
| pub title: String, | |
| pub url: String, | |
| pub description: String, | |
| pub source: String, | |
| pub score: f32, | |
| pub media_type: String, | |
| pub thumbnail_url: Option<String>, | |
| pub published_at: Option<String>, | |
| } | |
| fn default_media_type() -> String { | |
| "text".to_string() | |
| } | |
| /// Aggregated search response with timing. | |
| pub struct SearchResponse { | |
| pub query: String, | |
| pub results: Vec<SearchResult>, | |
| pub took_ms: u64, | |
| } | |