Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(playground): Support anyOf json schema #5927

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

cephalization
Copy link
Contributor

@cephalization cephalization commented Jan 7, 2025

image

Resolves #5921

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jan 7, 2025
@@ -5,33 +5,39 @@ import { assertUnreachable } from "@phoenix/typeUtils";

import { JSONLiteral, jsonLiteralSchema } from "./jsonLiteralSchema";

const jsonSchemaPropertiesSchema = z
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it, I wonder if it would be good to have a small set of jest tests that makes it easier to grok what's valid and not valid more declaratively. Would help ensure there are no regressions on the schema.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are testing this in various places already related to playground as well as phoenix/app/src/schemas/__tests__/toolSchemas.test.ts

@cephalization cephalization merged commit 16ca5f9 into main Jan 7, 2025
15 checks passed
@cephalization cephalization deleted the cephalization/5921-anyof-schema branch January 7, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[playground][ui] openai tool schemas containing anyOf are parsed as invalid
2 participants