windmill_api/models/
websearch_tool_value.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.597.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// WebsearchToolValue : A tool implemented as a websearch tool. The AI can call this like any other websearch tool
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct WebsearchToolValue {
17    #[serde(rename = "tool_type")]
18    pub tool_type: ToolType,
19}
20
21impl WebsearchToolValue {
22    /// A tool implemented as a websearch tool. The AI can call this like any other websearch tool
23    pub fn new(tool_type: ToolType) -> WebsearchToolValue {
24        WebsearchToolValue {
25            tool_type,
26        }
27    }
28}
29/// 
30#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
31pub enum ToolType {
32    #[serde(rename = "websearch")]
33    Websearch,
34}
35
36impl Default for ToolType {
37    fn default() -> ToolType {
38        Self::Websearch
39    }
40}
41