Skip to content

release: 0.1.0-alpha.11 #180

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

Merged
merged 22 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
488d540
feat(api): OpenAPI spec update via Stainless API (#159)
stainless-app[bot] Jul 18, 2024
d0ed786
feat(api): OpenAPI spec update via Stainless API (#160)
stainless-app[bot] Jul 18, 2024
2526bcc
feat(api): OpenAPI spec update via Stainless API (#161)
stainless-app[bot] Jul 22, 2024
b383e7e
feat(api): OpenAPI spec update via Stainless API (#162)
stainless-app[bot] Jul 22, 2024
2c1a08a
feat(api): OpenAPI spec update via Stainless API (#163)
stainless-app[bot] Jul 22, 2024
38da097
feat(api): OpenAPI spec update via Stainless API (#164)
stainless-app[bot] Jul 22, 2024
1e2c2d8
feat(api): OpenAPI spec update via Stainless API (#165)
stainless-app[bot] Jul 22, 2024
33a4e3b
chore(internal): refactor release doctor script (#166)
stainless-app[bot] Jul 22, 2024
d86724c
feat(api): OpenAPI spec update via Stainless API (#167)
stainless-app[bot] Jul 22, 2024
d117418
feat(api): OpenAPI spec update via Stainless API (#168)
stainless-app[bot] Jul 23, 2024
899a45b
chore(tests): update prism version (#169)
stainless-app[bot] Jul 23, 2024
54f6bc6
feat(api): OpenAPI spec update via Stainless API (#170)
stainless-app[bot] Jul 23, 2024
9562025
feat(api): OpenAPI spec update via Stainless API (#171)
stainless-app[bot] Jul 23, 2024
035709a
feat(api): OpenAPI spec update via Stainless API (#172)
stainless-app[bot] Jul 23, 2024
05c5e77
feat(api): OpenAPI spec update via Stainless API (#173)
stainless-app[bot] Jul 23, 2024
450c25a
feat(api): OpenAPI spec update via Stainless API (#174)
stainless-app[bot] Jul 25, 2024
22b91ca
feat(api): OpenAPI spec update via Stainless API (#175)
stainless-app[bot] Jul 26, 2024
47dc736
feat(api): OpenAPI spec update via Stainless API (#176)
stainless-app[bot] Jul 28, 2024
696f2bc
feat(api): OpenAPI spec update via Stainless API (#177)
stainless-app[bot] Jul 28, 2024
759044e
feat(api): OpenAPI spec update via Stainless API (#178)
stainless-app[bot] Jul 29, 2024
97d5676
chore(internal): codegen related update (#179)
stainless-app[bot] Jul 29, 2024
09c218a
release: 0.1.0-alpha.11
stainless-app[bot] Jul 29, 2024
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
Prev Previous commit
Next Next commit
feat(api): OpenAPI spec update via Stainless API (#175)
  • Loading branch information
stainless-app[bot] authored and Stainless Bot committed Jul 29, 2024
commit 22b91ca7a93a8245a0827878c64d2d4714522cad
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-101dab0674c0098868baea52c37050f14ce1dffeadecc3978c77e7b8a47c608c.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-ec010a81f2e8cfe74de9842b6fcd84599fd1d3f439ba3eb868fb5bdbfa2fa260.yml
78 changes: 13 additions & 65 deletions src/prompt_foundry_python_sdk/resources/evaluation_assertions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import List, Optional
from typing import Optional
from typing_extensions import Literal

import httpx
Expand Down Expand Up @@ -47,21 +47,11 @@ def create(
*,
evaluation_id: str,
json_path: Optional[str],
target_threshold: Optional[float],
target_values: Optional[List[str]],
target_value: Optional[str],
tool_name: Optional[str],
type: Literal[
"CONTAINS_ALL",
"CONTAINS_ANY",
"COST",
"EXACT_MATCH",
"LATENCY",
"STARTS_WITH",
"TOOL_CALLED",
"TOOL_CALLED_WITH",
"CONTAINS", "EXACT_MATCH", "JSON_CONTAINS", "JSON_EXACT_MATCH", "TOOL_CALLED", "TOOL_CALLED_WITH"
],
ignore_case: bool | NotGiven = NOT_GIVEN,
negate: bool | NotGiven = NOT_GIVEN,
weight: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -98,12 +88,9 @@ def create(
{
"evaluation_id": evaluation_id,
"json_path": json_path,
"target_threshold": target_threshold,
"target_values": target_values,
"target_value": target_value,
"tool_name": tool_name,
"type": type,
"ignore_case": ignore_case,
"negate": negate,
"weight": weight,
},
evaluation_assertion_create_params.EvaluationAssertionCreateParams,
Expand All @@ -120,21 +107,11 @@ def update(
*,
evaluation_id: str,
json_path: Optional[str],
target_threshold: Optional[float],
target_values: Optional[List[str]],
target_value: Optional[str],
tool_name: Optional[str],
type: Literal[
"CONTAINS_ALL",
"CONTAINS_ANY",
"COST",
"EXACT_MATCH",
"LATENCY",
"STARTS_WITH",
"TOOL_CALLED",
"TOOL_CALLED_WITH",
"CONTAINS", "EXACT_MATCH", "JSON_CONTAINS", "JSON_EXACT_MATCH", "TOOL_CALLED", "TOOL_CALLED_WITH"
],
ignore_case: bool | NotGiven = NOT_GIVEN,
negate: bool | NotGiven = NOT_GIVEN,
weight: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -173,12 +150,9 @@ def update(
{
"evaluation_id": evaluation_id,
"json_path": json_path,
"target_threshold": target_threshold,
"target_values": target_values,
"target_value": target_value,
"tool_name": tool_name,
"type": type,
"ignore_case": ignore_case,
"negate": negate,
"weight": weight,
},
evaluation_assertion_update_params.EvaluationAssertionUpdateParams,
Expand Down Expand Up @@ -309,21 +283,11 @@ async def create(
*,
evaluation_id: str,
json_path: Optional[str],
target_threshold: Optional[float],
target_values: Optional[List[str]],
target_value: Optional[str],
tool_name: Optional[str],
type: Literal[
"CONTAINS_ALL",
"CONTAINS_ANY",
"COST",
"EXACT_MATCH",
"LATENCY",
"STARTS_WITH",
"TOOL_CALLED",
"TOOL_CALLED_WITH",
"CONTAINS", "EXACT_MATCH", "JSON_CONTAINS", "JSON_EXACT_MATCH", "TOOL_CALLED", "TOOL_CALLED_WITH"
],
ignore_case: bool | NotGiven = NOT_GIVEN,
negate: bool | NotGiven = NOT_GIVEN,
weight: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -360,12 +324,9 @@ async def create(
{
"evaluation_id": evaluation_id,
"json_path": json_path,
"target_threshold": target_threshold,
"target_values": target_values,
"target_value": target_value,
"tool_name": tool_name,
"type": type,
"ignore_case": ignore_case,
"negate": negate,
"weight": weight,
},
evaluation_assertion_create_params.EvaluationAssertionCreateParams,
Expand All @@ -382,21 +343,11 @@ async def update(
*,
evaluation_id: str,
json_path: Optional[str],
target_threshold: Optional[float],
target_values: Optional[List[str]],
target_value: Optional[str],
tool_name: Optional[str],
type: Literal[
"CONTAINS_ALL",
"CONTAINS_ANY",
"COST",
"EXACT_MATCH",
"LATENCY",
"STARTS_WITH",
"TOOL_CALLED",
"TOOL_CALLED_WITH",
"CONTAINS", "EXACT_MATCH", "JSON_CONTAINS", "JSON_EXACT_MATCH", "TOOL_CALLED", "TOOL_CALLED_WITH"
],
ignore_case: bool | NotGiven = NOT_GIVEN,
negate: bool | NotGiven = NOT_GIVEN,
weight: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -435,12 +386,9 @@ async def update(
{
"evaluation_id": evaluation_id,
"json_path": json_path,
"target_threshold": target_threshold,
"target_values": target_values,
"target_value": target_value,
"tool_name": tool_name,
"type": type,
"ignore_case": ignore_case,
"negate": negate,
"weight": weight,
},
evaluation_assertion_update_params.EvaluationAssertionUpdateParams,
Expand Down
21 changes: 3 additions & 18 deletions src/prompt_foundry_python_sdk/types/evaluation_assertion.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import List, Optional
from typing import Optional
from typing_extensions import Literal

from pydantic import Field as FieldInfo
Expand All @@ -21,31 +21,16 @@ class EvaluationAssertion(BaseModel):
Only required when type is `JSON_EXACT_MATCH` or `JSON_CONTAINS`.
"""

target_threshold: Optional[float] = FieldInfo(alias="targetThreshold", default=None)

target_values: Optional[List[str]] = FieldInfo(alias="targetValues", default=None)
target_value: Optional[str] = FieldInfo(alias="targetValue", default=None)

tool_name: Optional[str] = FieldInfo(alias="toolName", default=None)
"""The name of the tool to match.

Only required when type is `TOOL_CALLED` or `TOOL_CALLED_WITH`.
"""

type: Literal[
"CONTAINS_ALL",
"CONTAINS_ANY",
"COST",
"EXACT_MATCH",
"LATENCY",
"STARTS_WITH",
"TOOL_CALLED",
"TOOL_CALLED_WITH",
]
type: Literal["CONTAINS", "EXACT_MATCH", "JSON_CONTAINS", "JSON_EXACT_MATCH", "TOOL_CALLED", "TOOL_CALLED_WITH"]
"""The type of evaluation matcher to use."""

ignore_case: Optional[bool] = FieldInfo(alias="ignoreCase", default=None)

negate: Optional[bool] = None

weight: Optional[float] = None
"""How heavily to weigh the assertion within the evaluation."""
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import List, Optional
from typing import Optional
from typing_extensions import Literal, Required, Annotated, TypedDict

from .._utils import PropertyInfo
Expand All @@ -19,9 +19,7 @@ class EvaluationAssertionCreateParams(TypedDict, total=False):
Only required when type is `JSON_EXACT_MATCH` or `JSON_CONTAINS`.
"""

target_threshold: Required[Annotated[Optional[float], PropertyInfo(alias="targetThreshold")]]

target_values: Required[Annotated[Optional[List[str]], PropertyInfo(alias="targetValues")]]
target_value: Required[Annotated[Optional[str], PropertyInfo(alias="targetValue")]]

tool_name: Required[Annotated[Optional[str], PropertyInfo(alias="toolName")]]
"""The name of the tool to match.
Expand All @@ -30,22 +28,9 @@ class EvaluationAssertionCreateParams(TypedDict, total=False):
"""

type: Required[
Literal[
"CONTAINS_ALL",
"CONTAINS_ANY",
"COST",
"EXACT_MATCH",
"LATENCY",
"STARTS_WITH",
"TOOL_CALLED",
"TOOL_CALLED_WITH",
]
Literal["CONTAINS", "EXACT_MATCH", "JSON_CONTAINS", "JSON_EXACT_MATCH", "TOOL_CALLED", "TOOL_CALLED_WITH"]
]
"""The type of evaluation matcher to use."""

ignore_case: Annotated[bool, PropertyInfo(alias="ignoreCase")]

negate: bool

weight: float
"""How heavily to weigh the assertion within the evaluation."""
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import List, Optional
from typing import Optional
from typing_extensions import Literal, Required, Annotated, TypedDict

from .._utils import PropertyInfo
Expand All @@ -19,9 +19,7 @@ class EvaluationAssertionUpdateParams(TypedDict, total=False):
Only required when type is `JSON_EXACT_MATCH` or `JSON_CONTAINS`.
"""

target_threshold: Required[Annotated[Optional[float], PropertyInfo(alias="targetThreshold")]]

target_values: Required[Annotated[Optional[List[str]], PropertyInfo(alias="targetValues")]]
target_value: Required[Annotated[Optional[str], PropertyInfo(alias="targetValue")]]

tool_name: Required[Annotated[Optional[str], PropertyInfo(alias="toolName")]]
"""The name of the tool to match.
Expand All @@ -30,22 +28,9 @@ class EvaluationAssertionUpdateParams(TypedDict, total=False):
"""

type: Required[
Literal[
"CONTAINS_ALL",
"CONTAINS_ANY",
"COST",
"EXACT_MATCH",
"LATENCY",
"STARTS_WITH",
"TOOL_CALLED",
"TOOL_CALLED_WITH",
]
Literal["CONTAINS", "EXACT_MATCH", "JSON_CONTAINS", "JSON_EXACT_MATCH", "TOOL_CALLED", "TOOL_CALLED_WITH"]
]
"""The type of evaluation matcher to use."""

ignore_case: Annotated[bool, PropertyInfo(alias="ignoreCase")]

negate: bool

weight: float
"""How heavily to weigh the assertion within the evaluation."""
Loading