Skip to main content

tools_from_spec

Function tools_from_spec 

Source
pub fn tools_from_spec(input: &str) -> Result<Vec<ToolDefinition>>
Expand description

Convenience function: parse an OpenAPI spec from a string (auto-detecting JSON vs YAML) and generate a list of ToolDefinition values.

For more control, use OpenApiSpec::parse and ManifestGenerator directly.