FunctionSchema
class is designed to consume Python functions and generate schemas that are compatible with different LLM providers (OpenAI, Ollama, LiteLLM, etc.). It automatically extracts:
int
→ number
float
→ number
str
→ string
bool
→ boolean
object
get_schemas
utility:
to_dict
.