upgrade versions and autogenerated client code (#2053)
This commit is contained in:
@@ -1,21 +1,15 @@
|
||||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
from .types import (
|
||||
AgentGetRunsResponseItem,
|
||||
AgentRunTaskV2RequestXMaxIterationsOverride,
|
||||
AgentRunTaskV2RequestXMaxStepsOverride,
|
||||
TaskRequestExtractedInformationSchema,
|
||||
TaskRequestNavigationPayload,
|
||||
TaskRunRequestDataExtractionSchema,
|
||||
TaskV2RequestExtractedInformationSchema,
|
||||
AgentGetRunResponse,
|
||||
AgentGetRunResponse_TaskV1,
|
||||
AgentGetRunResponse_TaskV2,
|
||||
AgentGetRunResponse_WorkflowRun,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"AgentGetRunsResponseItem",
|
||||
"AgentRunTaskV2RequestXMaxIterationsOverride",
|
||||
"AgentRunTaskV2RequestXMaxStepsOverride",
|
||||
"TaskRequestExtractedInformationSchema",
|
||||
"TaskRequestNavigationPayload",
|
||||
"TaskRunRequestDataExtractionSchema",
|
||||
"TaskV2RequestExtractedInformationSchema",
|
||||
"AgentGetRunResponse",
|
||||
"AgentGetRunResponse_TaskV1",
|
||||
"AgentGetRunResponse_TaskV2",
|
||||
"AgentGetRunResponse_WorkflowRun",
|
||||
]
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,19 +1,15 @@
|
||||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
from .agent_get_runs_response_item import AgentGetRunsResponseItem
|
||||
from .agent_run_task_v2request_x_max_iterations_override import AgentRunTaskV2RequestXMaxIterationsOverride
|
||||
from .agent_run_task_v2request_x_max_steps_override import AgentRunTaskV2RequestXMaxStepsOverride
|
||||
from .task_request_extracted_information_schema import TaskRequestExtractedInformationSchema
|
||||
from .task_request_navigation_payload import TaskRequestNavigationPayload
|
||||
from .task_run_request_data_extraction_schema import TaskRunRequestDataExtractionSchema
|
||||
from .task_v2request_extracted_information_schema import TaskV2RequestExtractedInformationSchema
|
||||
from .agent_get_run_response import (
|
||||
AgentGetRunResponse,
|
||||
AgentGetRunResponse_TaskV1,
|
||||
AgentGetRunResponse_TaskV2,
|
||||
AgentGetRunResponse_WorkflowRun,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"AgentGetRunsResponseItem",
|
||||
"AgentRunTaskV2RequestXMaxIterationsOverride",
|
||||
"AgentRunTaskV2RequestXMaxStepsOverride",
|
||||
"TaskRequestExtractedInformationSchema",
|
||||
"TaskRequestNavigationPayload",
|
||||
"TaskRunRequestDataExtractionSchema",
|
||||
"TaskV2RequestExtractedInformationSchema",
|
||||
"AgentGetRunResponse",
|
||||
"AgentGetRunResponse_TaskV1",
|
||||
"AgentGetRunResponse_TaskV2",
|
||||
"AgentGetRunResponse_WorkflowRun",
|
||||
]
|
||||
|
||||
77
skyvern/client/agent/types/agent_get_run_response.py
Normal file
77
skyvern/client/agent/types/agent_get_run_response.py
Normal file
@@ -0,0 +1,77 @@
|
||||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
from __future__ import annotations
|
||||
from ...core.pydantic_utilities import UniversalBaseModel
|
||||
import typing
|
||||
from ...types.run_status import RunStatus
|
||||
from ...types.output import Output
|
||||
import datetime as dt
|
||||
from ...types.task_run_request import TaskRunRequest
|
||||
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
||||
import pydantic
|
||||
from ...types.workflow_run_request import WorkflowRunRequest
|
||||
|
||||
|
||||
class AgentGetRunResponse_TaskV1(UniversalBaseModel):
|
||||
run_type: typing.Literal["task_v1"] = "task_v1"
|
||||
run_id: str
|
||||
status: RunStatus
|
||||
output: typing.Optional[Output] = None
|
||||
failure_reason: typing.Optional[str] = None
|
||||
created_at: dt.datetime
|
||||
modified_at: dt.datetime
|
||||
run_request: typing.Optional[TaskRunRequest] = None
|
||||
|
||||
if IS_PYDANTIC_V2:
|
||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
||||
else:
|
||||
|
||||
class Config:
|
||||
frozen = True
|
||||
smart_union = True
|
||||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
class AgentGetRunResponse_TaskV2(UniversalBaseModel):
|
||||
run_type: typing.Literal["task_v2"] = "task_v2"
|
||||
run_id: str
|
||||
status: RunStatus
|
||||
output: typing.Optional[Output] = None
|
||||
failure_reason: typing.Optional[str] = None
|
||||
created_at: dt.datetime
|
||||
modified_at: dt.datetime
|
||||
run_request: typing.Optional[TaskRunRequest] = None
|
||||
|
||||
if IS_PYDANTIC_V2:
|
||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
||||
else:
|
||||
|
||||
class Config:
|
||||
frozen = True
|
||||
smart_union = True
|
||||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
class AgentGetRunResponse_WorkflowRun(UniversalBaseModel):
|
||||
run_type: typing.Literal["workflow_run"] = "workflow_run"
|
||||
run_id: str
|
||||
status: RunStatus
|
||||
output: typing.Optional[Output] = None
|
||||
failure_reason: typing.Optional[str] = None
|
||||
created_at: dt.datetime
|
||||
modified_at: dt.datetime
|
||||
run_request: typing.Optional[WorkflowRunRequest] = None
|
||||
|
||||
if IS_PYDANTIC_V2:
|
||||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
||||
else:
|
||||
|
||||
class Config:
|
||||
frozen = True
|
||||
smart_union = True
|
||||
extra = pydantic.Extra.allow
|
||||
|
||||
|
||||
AgentGetRunResponse = typing.Union[
|
||||
AgentGetRunResponse_TaskV1, AgentGetRunResponse_TaskV2, AgentGetRunResponse_WorkflowRun
|
||||
]
|
||||
@@ -1,7 +0,0 @@
|
||||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
import typing
|
||||
from ...types.workflow_run import WorkflowRun
|
||||
from ...types.task import Task
|
||||
|
||||
AgentGetRunsResponseItem = typing.Union[WorkflowRun, Task]
|
||||
@@ -1,5 +0,0 @@
|
||||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
import typing
|
||||
|
||||
AgentRunTaskV2RequestXMaxIterationsOverride = typing.Union[int, str]
|
||||
@@ -1,5 +0,0 @@
|
||||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
import typing
|
||||
|
||||
AgentRunTaskV2RequestXMaxStepsOverride = typing.Union[int, str]
|
||||
@@ -1,7 +0,0 @@
|
||||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
import typing
|
||||
|
||||
TaskRequestExtractedInformationSchema = typing.Union[
|
||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
|
||||
]
|
||||
@@ -1,7 +0,0 @@
|
||||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
import typing
|
||||
|
||||
TaskRequestNavigationPayload = typing.Union[
|
||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
|
||||
]
|
||||
@@ -1,7 +0,0 @@
|
||||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
import typing
|
||||
|
||||
TaskRunRequestDataExtractionSchema = typing.Union[
|
||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
|
||||
]
|
||||
@@ -1,7 +0,0 @@
|
||||
# This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
import typing
|
||||
|
||||
TaskV2RequestExtractedInformationSchema = typing.Union[
|
||||
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
|
||||
]
|
||||
Reference in New Issue
Block a user