Skip to content

Implemented strict JSON Schema type option for FunctionSchema.#49

Open
shaheerzaman wants to merge 1 commit intoaurelio-labs:mainfrom
shaheerzaman:feat/relaxed-function-schema
Open

Implemented strict JSON Schema type option for FunctionSchema.#49
shaheerzaman wants to merge 1 commit intoaurelio-labs:mainfrom
shaheerzaman:feat/relaxed-function-schema

Conversation

@shaheerzaman
Copy link
Copy Markdown
Contributor

What Changed

Added strict type mapping support:
graphai/utils.py:81 openai_type_mapping(..., strict_json_types=False)

Strict JSON Schema:
schema.to_dict(strict_json_types=True)
schema.to_openai(api="responses", strict_json_types=True)
get_schemas([fn1, fn2], strict_json_types=True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant