Skip to main content

cosh_tools/web/
types.rs

1use schemars::JsonSchema;
2use serde::Deserialize;
3
4/// Parameters for `web_fetch`.
5#[derive(Debug, Default, Deserialize, JsonSchema)]
6pub struct WebFetchInput {
7    /// The full HTTP or HTTPS URL to fetch.
8    pub url: String,
9}
10
11/// Parameters for `web_search`.
12#[derive(Debug, Deserialize, JsonSchema)]
13pub struct WebSearchInput {
14    /// The search query string.
15    pub query: String,
16}