Skip to content

Commit

Permalink
feat: Add PromptTemplate type (#5787)
Browse files Browse the repository at this point in the history
* Flesh out PromptVersionTemplate type

* Return GraphQL objects with the correct type

* Use new types in node query

* Decouple pydantic models and gql types

* Rebuild gql schema

* Rework model names

* Update gql schema

* Propagate name into schema

* Incorporate feedback

* Update schema

* adjust UI to new schema

* cleanup

* Remove `hub` naming and clean up type annotations

---------

Co-authored-by: Mikyo King <[email protected]>
  • Loading branch information
anticorrelator and mikeldking committed Jan 3, 2025
1 parent c94dc87 commit 659d206
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
15 changes: 0 additions & 15 deletions app/src/pages/prompt/schemas.ts

This file was deleted.

2 changes: 2 additions & 0 deletions src/phoenix/server/api/types/PromptVersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from .PromptVersionTag import PromptVersionTag
from .ToolDefinition import ToolDefinition

from phoenix.server.api.types.PromptVersionTemplate import PromptTemplate


@strawberry.enum
class PromptTemplateType(str, Enum):
Expand Down

0 comments on commit 659d206

Please sign in to comment.