SIGN IN SIGN UP

feat(prompts): Break message content into parts (#6027)

* feat(prompts): Break JSONPromptMessage content into list of parts

* Port PromptChatMessage component queries to pull in message content parts

* Bump openapi schema

* Update prompt input schemas, fix prompt tests

* Bump openapi schema

* Refactor chat template types to use new prompt message schema

* Bump uv lock

* Fix auth test

* Rename Image model to ImageResult

* Update comment

* Normalize depth across all content part types

* Fix auth test

* Fix discrepencies between ContentParts with Pydantic, GQL Input, and GQL Output

- Pydantic discriminated union was too strict, need to populate type field with defaults during validation since they are not provided by input
- Strawberry input types need to default to UNSET when using OneOf decorator arg
- unlike Strawberry input type, Strawberry output types need to match the same shape as the pydantic models so that they can be automatically converted from ORM model

* Use new gql query types in FE

* add unit tests for third-party SDKs

* fix typo

* fix type check

* build openapi schema

* fix relay

* fix ci for evals pkg

* disable fail fast for evals

* revert changes to requirements

---------

Co-authored-by: Roger Yang <roger.yang@arize.com>
A
Anthony Powell committed
28edde92afefb3aa3944830301980b723fe3474e
Parent: 461278d
Committed by Mikyo King <mikyo@arize.com> on 2/19/2025, 10:52:46 PM