TypeGraphToFunctionCallingSchemaTransformer

class TypeGraphToFunctionCallingSchemaTransformer @JvmOverloads constructor(json: Json = Json { encodeDefaults = false }) : TypeGraphTransformer<FunctionCallingSchema> (source)

Transforms a TypeGraph into a FunctionCallingSchema for tool/function schema representation.

This transformer converts the IR representation of a function's parameters into a tool schema suitable for LLM function calling APIs.

All fields are marked as required in the schema. Nullable/optional fields are represented using union types that include "null" (e.g., "string", "null") instead of using the "nullable" flag.

See

Constructors

constructor(json: Json = Json { encodeDefaults = false })

Functions

Link copied to clipboard
open override fun transform(graph: TypeGraph, rootName: String): FunctionCallingSchema