Skip to content

Commit aba96e1

Browse files
feat(api): OpenAPI spec update via Stainless API (#27)
1 parent c32a934 commit aba96e1

File tree

10 files changed

+105
-105
lines changed

10 files changed

+105
-105
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-ae96c71f2fee5c8745ff8f5a5b2662ab5215347f78480be8f07566939c7c259f.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-d11a80a8e845d3ff7fbbdc68e2b7f12f33012cc681c34c56f2e549832bbe3bb3.yml

src/prompt_foundry_python_sdk/types/evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class AppendedMessage(BaseModel):
3737
content: Optional[str] = None
3838
"""Example: "Hello, {{city}}!" """
3939

40-
role: Literal["USER", "ASSISTANT", "SYSTEM", "TOOL"]
40+
role: Literal["user", "assistant", "system", "tool"]
4141

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

src/prompt_foundry_python_sdk/types/evaluation_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class AppendedMessage(TypedDict, total=False):
4747
content: Required[Optional[str]]
4848
"""Example: "Hello, {{city}}!" """
4949

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

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

src/prompt_foundry_python_sdk/types/evaluation_update_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class AppendedMessage(TypedDict, total=False):
4747
content: Required[Optional[str]]
4848
"""Example: "Hello, {{city}}!" """
4949

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

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

src/prompt_foundry_python_sdk/types/prompt_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Message(BaseModel):
3737
content: Optional[str] = None
3838
"""Example: "Hello, {{city}}!" """
3939

40-
role: Literal["USER", "ASSISTANT", "SYSTEM", "TOOL"]
40+
role: Literal["user", "assistant", "system", "tool"]
4141

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

src/prompt_foundry_python_sdk/types/prompt_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Message(TypedDict, total=False):
4747
content: Required[Optional[str]]
4848
"""Example: "Hello, {{city}}!" """
4949

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

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

src/prompt_foundry_python_sdk/types/prompt_get_parameters_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class AppendMessage(TypedDict, total=False):
6565
content: Required[Optional[str]]
6666
"""Example: "Hello, {{city}}!" """
6767

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

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

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

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

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

src/prompt_foundry_python_sdk/types/prompt_update_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Message(TypedDict, total=False):
4747
content: Required[Optional[str]]
4848
"""Example: "Hello, {{city}}!" """
4949

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

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

0 commit comments

Comments
 (0)