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
1 change: 1 addition & 0 deletions package/docs/apis/tags/IngestionApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ with gentrace.ApiClient(configuration) as api_client:

# example passing only required values which don't have defaults set
body = PipelineRunRequest(
id="id_example",
name="name_example",
step_runs=[
dict(
Expand Down
2 changes: 1 addition & 1 deletion package/docs/models/FeedbackRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ dict, frozendict.frozendict, | frozendict.frozendict, | |
### Dictionary Keys
Key | Input Type | Accessed Type | Description | Notes
------------ | ------------- | ------------- | ------------- | -------------
**score** | decimal.Decimal, int, float, | decimal.Decimal, | | value must be a 32 bit float
**pipelineRunId** | str, uuid.UUID, | str, | | value must be a uuid
**rating** | str, | str, | | must be one of ["positive", "negative", "neutral", ]
**recordedTime** | str, datetime, | str, | | value must conform to RFC-3339 date-time
**details** | None, str, | NoneClass, str, | | [optional]

Expand Down
1 change: 1 addition & 0 deletions package/docs/models/PipelineRunRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Key | Input Type | Accessed Type | Description | Notes
------------ | ------------- | ------------- | ------------- | -------------
**[stepRuns](#stepRuns)** | list, tuple, | tuple, | |
**name** | str, | str, | |
**id** | str, uuid.UUID, | str, | | [optional] value must be a uuid
**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]

# stepRuns
Expand Down
2 changes: 1 addition & 1 deletion package/gentrace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

These API routes are designed to ingest events from clients. # noqa: E501

The version of the OpenAPI document: 0.4.1
The version of the OpenAPI document: 0.4.4
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion package/gentrace/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

These API routes are designed to ingest events from clients. # noqa: E501

The version of the OpenAPI document: 0.4.1
The version of the OpenAPI document: 0.4.4
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion package/gentrace/apis/tags/ingestion_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

These API routes are designed to ingest events from clients. # noqa: E501

The version of the OpenAPI document: 0.4.1
The version of the OpenAPI document: 0.4.4
Generated by: https://openapi-generator.tech
"""

Expand Down
4 changes: 2 additions & 2 deletions package/gentrace/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

These API routes are designed to ingest events from clients. # noqa: E501

The version of the OpenAPI document: 0.4.1
The version of the OpenAPI document: 0.4.4
Generated by: https://openapi-generator.tech
"""

Expand Down Expand Up @@ -374,7 +374,7 @@ def to_debug_report(self):
"Python SDK Debug Report:\n"
"OS: {env}\n"
"Python Version: {pyversion}\n"
"Version of the API: 0.4.1\n"
"Version of the API: 0.4.4\n"
"SDK Package Version: 1.0.0".format(env=sys.platform, pyversion=sys.version)
)

Expand Down
2 changes: 1 addition & 1 deletion package/gentrace/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

These API routes are designed to ingest events from clients. # noqa: E501

The version of the OpenAPI document: 0.4.1
The version of the OpenAPI document: 0.4.4
Generated by: https://openapi-generator.tech
"""
import dataclasses
Expand Down
62 changes: 25 additions & 37 deletions package/gentrace/model/feedback_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

These API routes are designed to ingest events from clients. # noqa: E501

The version of the OpenAPI document: 0.4.1
The version of the OpenAPI document: 0.4.4
Generated by: https://openapi-generator.tech
"""

Expand All @@ -32,33 +32,19 @@ class FeedbackRequest(schemas.DictSchema):

class MetaOapg:
required = {
"score",
"pipelineRunId",
"rating",
"recordedTime",
}

class properties:
pipelineRunId = schemas.UUIDSchema

class rating(schemas.EnumBase, schemas.StrSchema):
class score(schemas.Float32Schema):
class MetaOapg:
enum_value_to_name = {
"positive": "POSITIVE",
"negative": "NEGATIVE",
"neutral": "NEUTRAL",
}

@schemas.classproperty
def POSITIVE(cls):
return cls("positive")

@schemas.classproperty
def NEGATIVE(cls):
return cls("negative")

@schemas.classproperty
def NEUTRAL(cls):
return cls("neutral")
format = "float"
inclusive_maximum = 1
inclusive_minimum = 0

recordedTime = schemas.DateTimeSchema

Expand All @@ -81,27 +67,27 @@ def __new__(

__annotations__ = {
"pipelineRunId": pipelineRunId,
"rating": rating,
"score": score,
"recordedTime": recordedTime,
"details": details,
}

additional_properties = schemas.NotAnyTypeSchema

score: MetaOapg.properties.score
pipelineRunId: MetaOapg.properties.pipelineRunId
rating: MetaOapg.properties.rating
recordedTime: MetaOapg.properties.recordedTime

@typing.overload
def __getitem__(
self, name: typing_extensions.Literal["pipelineRunId"]
) -> MetaOapg.properties.pipelineRunId:
self, name: typing_extensions.Literal["score"]
) -> MetaOapg.properties.score:
...

@typing.overload
def __getitem__(
self, name: typing_extensions.Literal["rating"]
) -> MetaOapg.properties.rating:
self, name: typing_extensions.Literal["pipelineRunId"]
) -> MetaOapg.properties.pipelineRunId:
...

@typing.overload
Expand All @@ -119,8 +105,8 @@ def __getitem__(
def __getitem__(
self,
name: typing.Union[
typing_extensions.Literal["score"],
typing_extensions.Literal["pipelineRunId"],
typing_extensions.Literal["rating"],
typing_extensions.Literal["recordedTime"],
typing_extensions.Literal["details"],
],
Expand All @@ -130,14 +116,14 @@ def __getitem__(

@typing.overload
def get_item_oapg(
self, name: typing_extensions.Literal["pipelineRunId"]
) -> MetaOapg.properties.pipelineRunId:
self, name: typing_extensions.Literal["score"]
) -> MetaOapg.properties.score:
...

@typing.overload
def get_item_oapg(
self, name: typing_extensions.Literal["rating"]
) -> MetaOapg.properties.rating:
self, name: typing_extensions.Literal["pipelineRunId"]
) -> MetaOapg.properties.pipelineRunId:
...

@typing.overload
Expand All @@ -155,8 +141,8 @@ def get_item_oapg(
def get_item_oapg(
self,
name: typing.Union[
typing_extensions.Literal["score"],
typing_extensions.Literal["pipelineRunId"],
typing_extensions.Literal["rating"],
typing_extensions.Literal["recordedTime"],
typing_extensions.Literal["details"],
],
Expand All @@ -169,15 +155,17 @@ def __new__(
dict,
frozendict.frozendict,
],
score: typing.Union[
MetaOapg.properties.score,
decimal.Decimal,
int,
float,
],
pipelineRunId: typing.Union[
MetaOapg.properties.pipelineRunId,
str,
uuid.UUID,
],
rating: typing.Union[
MetaOapg.properties.rating,
str,
],
recordedTime: typing.Union[
MetaOapg.properties.recordedTime,
str,
Expand All @@ -191,8 +179,8 @@ def __new__(
return super().__new__(
cls,
*_args,
score=score,
pipelineRunId=pipelineRunId,
rating=rating,
recordedTime=recordedTime,
details=details,
_configuration=_configuration,
Expand Down
52 changes: 23 additions & 29 deletions package/gentrace/model/feedback_request.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

These API routes are designed to ingest events from clients. # noqa: E501

The version of the OpenAPI document: 0.4.1
The version of the OpenAPI document: 0.4.4
Generated by: https://openapi-generator.tech
"""

Expand All @@ -31,24 +31,16 @@ class FeedbackRequest(schemas.DictSchema):

class MetaOapg:
required = {
"score",
"pipelineRunId",
"rating",
"recordedTime",
}

class properties:
pipelineRunId = schemas.UUIDSchema

class rating(schemas.EnumBase, schemas.StrSchema):
@schemas.classproperty
def POSITIVE(cls):
return cls("positive")
@schemas.classproperty
def NEGATIVE(cls):
return cls("negative")
@schemas.classproperty
def NEUTRAL(cls):
return cls("neutral")
class score(schemas.Float32Schema):
pass
recordedTime = schemas.DateTimeSchema

class details(
Expand All @@ -69,23 +61,23 @@ class FeedbackRequest(schemas.DictSchema):
)
__annotations__ = {
"pipelineRunId": pipelineRunId,
"rating": rating,
"score": score,
"recordedTime": recordedTime,
"details": details,
}
additional_properties = schemas.NotAnyTypeSchema
score: MetaOapg.properties.score
pipelineRunId: MetaOapg.properties.pipelineRunId
rating: MetaOapg.properties.rating
recordedTime: MetaOapg.properties.recordedTime

@typing.overload
def __getitem__(
self, name: typing_extensions.Literal["pipelineRunId"]
) -> MetaOapg.properties.pipelineRunId: ...
self, name: typing_extensions.Literal["score"]
) -> MetaOapg.properties.score: ...
@typing.overload
def __getitem__(
self, name: typing_extensions.Literal["rating"]
) -> MetaOapg.properties.rating: ...
self, name: typing_extensions.Literal["pipelineRunId"]
) -> MetaOapg.properties.pipelineRunId: ...
@typing.overload
def __getitem__(
self, name: typing_extensions.Literal["recordedTime"]
Expand All @@ -97,8 +89,8 @@ class FeedbackRequest(schemas.DictSchema):
def __getitem__(
self,
name: typing.Union[
typing_extensions.Literal["score"],
typing_extensions.Literal["pipelineRunId"],
typing_extensions.Literal["rating"],
typing_extensions.Literal["recordedTime"],
typing_extensions.Literal["details"],
],
Expand All @@ -107,12 +99,12 @@ class FeedbackRequest(schemas.DictSchema):
return super().__getitem__(name)
@typing.overload
def get_item_oapg(
self, name: typing_extensions.Literal["pipelineRunId"]
) -> MetaOapg.properties.pipelineRunId: ...
self, name: typing_extensions.Literal["score"]
) -> MetaOapg.properties.score: ...
@typing.overload
def get_item_oapg(
self, name: typing_extensions.Literal["rating"]
) -> MetaOapg.properties.rating: ...
self, name: typing_extensions.Literal["pipelineRunId"]
) -> MetaOapg.properties.pipelineRunId: ...
@typing.overload
def get_item_oapg(
self, name: typing_extensions.Literal["recordedTime"]
Expand All @@ -124,8 +116,8 @@ class FeedbackRequest(schemas.DictSchema):
def get_item_oapg(
self,
name: typing.Union[
typing_extensions.Literal["score"],
typing_extensions.Literal["pipelineRunId"],
typing_extensions.Literal["rating"],
typing_extensions.Literal["recordedTime"],
typing_extensions.Literal["details"],
],
Expand All @@ -137,15 +129,17 @@ class FeedbackRequest(schemas.DictSchema):
dict,
frozendict.frozendict,
],
score: typing.Union[
MetaOapg.properties.score,
decimal.Decimal,
int,
float,
],
pipelineRunId: typing.Union[
MetaOapg.properties.pipelineRunId,
str,
uuid.UUID,
],
rating: typing.Union[
MetaOapg.properties.rating,
str,
],
recordedTime: typing.Union[
MetaOapg.properties.recordedTime,
str,
Expand All @@ -159,8 +153,8 @@ class FeedbackRequest(schemas.DictSchema):
return super().__new__(
cls,
*_args,
score=score,
pipelineRunId=pipelineRunId,
rating=rating,
recordedTime=recordedTime,
details=details,
_configuration=_configuration,
Expand Down
2 changes: 1 addition & 1 deletion package/gentrace/model/feedback_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

These API routes are designed to ingest events from clients. # noqa: E501

The version of the OpenAPI document: 0.4.1
The version of the OpenAPI document: 0.4.4
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion package/gentrace/model/feedback_response.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

These API routes are designed to ingest events from clients. # noqa: E501

The version of the OpenAPI document: 0.4.1
The version of the OpenAPI document: 0.4.4
Generated by: https://openapi-generator.tech
"""

Expand Down
Loading