Language Model Tool
class LanguageModelTool(val name: String, val description: String, val parametersSchemaJson: String, val providerExecuted: Boolean = false, val metadata: Map<String, JsonElement> = emptyMap(), val strict: Boolean? = null, val providerOptions: ProviderOptions = ProviderOptions.None)(source)
Tool advertisement at the model surface — the JSON-schema shape the provider needs. Distinct from the application-side Tool which carries a Kotlin executor; this is the wire shape that crosses into a provider.
Since
0.3.0-beta01
Constructors
Link copied to clipboard
constructor(name: String, description: String, parametersSchemaJson: String, providerExecuted: Boolean = false, metadata: Map<String, JsonElement> = emptyMap(), strict: Boolean? = null, providerOptions: ProviderOptions = ProviderOptions.None)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Parsed once and cached — not a constructor arg, so not serialized.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Provider-specific config sent to the model for this tool (upstream's tool.providerOptions).