Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 21
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-d11a80a8e845d3ff7fbbdc68e2b7f12f33012cc681c34c56f2e549832bbe3bb3.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-ae96c71f2fee5c8745ff8f5a5b2662ab5215347f78480be8f07566939c7c259f.yml
2 changes: 1 addition & 1 deletion src/prompt_foundry_python_sdk/types/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class AppendedMessage(BaseModel):
content: Optional[str] = None
"""Example: "Hello, {{city}}!" """

role: Literal["user", "assistant", "system", "tool"]
role: Literal["USER", "ASSISTANT", "SYSTEM", "TOOL"]

tool_call_id: Optional[str] = FieldInfo(alias="toolCallId", default=None)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class AppendedMessage(TypedDict, total=False):
content: Required[Optional[str]]
"""Example: "Hello, {{city}}!" """

role: Required[Literal["user", "assistant", "system", "tool"]]
role: Required[Literal["USER", "ASSISTANT", "SYSTEM", "TOOL"]]

tool_call_id: Required[Annotated[Optional[str], PropertyInfo(alias="toolCallId")]]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class AppendedMessage(TypedDict, total=False):
content: Required[Optional[str]]
"""Example: "Hello, {{city}}!" """

role: Required[Literal["user", "assistant", "system", "tool"]]
role: Required[Literal["USER", "ASSISTANT", "SYSTEM", "TOOL"]]

tool_call_id: Required[Annotated[Optional[str], PropertyInfo(alias="toolCallId")]]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Message(BaseModel):
content: Optional[str] = None
"""Example: "Hello, {{city}}!" """

role: Literal["user", "assistant", "system", "tool"]
role: Literal["USER", "ASSISTANT", "SYSTEM", "TOOL"]

tool_call_id: Optional[str] = FieldInfo(alias="toolCallId", default=None)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Message(TypedDict, total=False):
content: Required[Optional[str]]
"""Example: "Hello, {{city}}!" """

role: Required[Literal["user", "assistant", "system", "tool"]]
role: Required[Literal["USER", "ASSISTANT", "SYSTEM", "TOOL"]]

tool_call_id: Required[Annotated[Optional[str], PropertyInfo(alias="toolCallId")]]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class AppendMessage(TypedDict, total=False):
content: Required[Optional[str]]
"""Example: "Hello, {{city}}!" """

role: Required[Literal["user", "assistant", "system", "tool"]]
role: Required[Literal["USER", "ASSISTANT", "SYSTEM", "TOOL"]]

tool_call_id: Required[Annotated[Optional[str], PropertyInfo(alias="toolCallId")]]

Expand Down Expand Up @@ -99,7 +99,7 @@ class OverrideMessage(TypedDict, total=False):
content: Required[Optional[str]]
"""Example: "Hello, {{city}}!" """

role: Required[Literal["user", "assistant", "system", "tool"]]
role: Required[Literal["USER", "ASSISTANT", "SYSTEM", "TOOL"]]

tool_call_id: Required[Annotated[Optional[str], PropertyInfo(alias="toolCallId")]]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Message(TypedDict, total=False):
content: Required[Optional[str]]
"""Example: "Hello, {{city}}!" """

role: Required[Literal["user", "assistant", "system", "tool"]]
role: Required[Literal["USER", "ASSISTANT", "SYSTEM", "TOOL"]]

tool_call_id: Required[Annotated[Optional[str], PropertyInfo(alias="toolCallId")]]

Expand Down
Loading