Skip to main content

gproxy_protocol/openai/common/enums/
tools.rs

1strict_string_enum!(ToolSearchExecution { Server => "server", Client => "client" });
2strict_string_enum!(ToolChoiceMode { None => "none", Auto => "auto", Required => "required" });
3strict_string_enum!(AllowedToolsMode { Auto => "auto", Required => "required" });
4strict_string_enum!(ToolCaller { Direct => "direct", Programmatic => "programmatic" });
5strict_string_enum!(ChatToolCallType { Function => "function", Custom => "custom" });
6strict_string_enum!(CustomToolGrammarSyntax { Lark => "lark", Regex => "regex" });
7strict_string_enum!(CodeInterpreterContainerType { Auto => "auto" });
8strict_string_enum!(CodeInterpreterMemoryLimit {
9    OneG => "1g",
10    FourG => "4g",
11    SixteenG => "16g",
12    SixtyFourG => "64g",
13});
14strict_string_enum!(ImageGenerationAction { Generate => "generate", Edit => "edit", Auto => "auto" });
15strict_string_enum!(ToolType {
16    Function => "function",
17    Custom => "custom",
18    FileSearch => "file_search",
19    WebSearchPreview => "web_search_preview",
20    WebSearchPreview20250311 => "web_search_preview_2025_03_11",
21    WebSearch => "web_search",
22    WebSearch20250826 => "web_search_2025_08_26",
23    XSearch => "x_search",
24    CollectionsSearch => "collections_search",
25    Computer => "computer",
26    ComputerUse => "computer_use",
27    ComputerUsePreview => "computer_use_preview",
28    CodeExecution => "code_execution",
29    CodeInterpreter => "code_interpreter",
30    ImageGeneration => "image_generation",
31    Mcp => "mcp",
32    ApplyPatch => "apply_patch",
33    Shell => "shell",
34    LocalShell => "local_shell",
35    ToolSearch => "tool_search",
36    Namespace => "namespace",
37    ProgrammaticToolCalling => "programmatic_tool_calling",
38});