openapi_spec_to_openai_fn(
spec: OpenAPISpec,
) -> tuple[list[dict[str,| Name | Type | Description |
|---|---|---|
spec* | OpenAPISpec |
OpenAPI spec to OpenAI function JSON Schema.
Convert a valid OpenAPI spec to the JSON Schema format expected for OpenAI functions.
OpenAPI spec to convert.