semantic_router.utils.function_call.FunctionSchema#

class semantic_router.utils.function_call.FunctionSchema(function: Callable | BaseModel)#

Bases: object

Class that consumes a function and can return a schema required by different LLMs for function calling.

__init__(function: Callable | BaseModel)#

Methods

__init__(function)

to_ollama()

Attributes

description

name

output

parameters

signature