aide/tool
Types
pub type ObjectSchema =
List(#(String, json_schema.Ref(json_schema.Schema), Bool))
pub type Spec {
Spec(
name: String,
input: List(
#(String, json_schema.Ref(json_schema.Schema), Bool),
),
output: List(
#(String, json_schema.Ref(json_schema.Schema), Bool),
),
)
}
Constructors
-
Spec( name: String, input: List( #(String, json_schema.Ref(json_schema.Schema), Bool), ), output: List( #(String, json_schema.Ref(json_schema.Schema), Bool), ), )
Values
pub fn new(
name: String,
input_schema: List(
#(String, json_schema.Ref(json_schema.Schema), Bool),
),
output_schema: List(
#(String, json_schema.Ref(json_schema.Schema), Bool),
),
) -> definitions.Tool
pub fn set_description(
tool: definitions.Tool,
description: String,
) -> definitions.Tool
pub fn set_title(
tool: definitions.Tool,
title: String,
) -> definitions.Tool