Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Oct 2, 2024
1 parent 4d768b7 commit 917f242
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 105 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 50
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-43adb46012be95b03aec84cd642acd07342b7e9bb79077256f4827c98846c644.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-44f4c6ee81a60ead4d0d9cbc4eba836ce7c8ecbd827f62bfd7bf17ce113fe63f.yml
110 changes: 70 additions & 40 deletions src/julep/types/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
"MainSearchStepSearchVectorDocSearchRequest",
"MainSearchStepSearchTextOnlyDocSearchRequest",
"MainSearchStepSearchHybridDocSearchRequest",
"MainYieldStep",
"MainReturnStep",
"MainSleepStep",
"MainSleepStepSleep",
"MainErrorWorkflowStep",
"MainYieldStep",
"MainWaitForInputStep",
"MainWaitForInputStepWaitForInput",
"MainIfElseWorkflowStepOutput",
Expand Down Expand Up @@ -82,11 +82,11 @@
"MainIfElseWorkflowStepOutputThenSearchStepSearchVectorDocSearchRequest",
"MainIfElseWorkflowStepOutputThenSearchStepSearchTextOnlyDocSearchRequest",
"MainIfElseWorkflowStepOutputThenSearchStepSearchHybridDocSearchRequest",
"MainIfElseWorkflowStepOutputThenYieldStep",
"MainIfElseWorkflowStepOutputThenReturnStep",
"MainIfElseWorkflowStepOutputThenSleepStep",
"MainIfElseWorkflowStepOutputThenSleepStepSleep",
"MainIfElseWorkflowStepOutputThenErrorWorkflowStep",
"MainIfElseWorkflowStepOutputThenYieldStep",
"MainIfElseWorkflowStepOutputThenWaitForInputStep",
"MainIfElseWorkflowStepOutputThenWaitForInputStepWaitForInput",
"MainIfElseWorkflowStepOutputElse",
Expand Down Expand Up @@ -120,11 +120,11 @@
"MainIfElseWorkflowStepOutputElseSearchStepSearchVectorDocSearchRequest",
"MainIfElseWorkflowStepOutputElseSearchStepSearchTextOnlyDocSearchRequest",
"MainIfElseWorkflowStepOutputElseSearchStepSearchHybridDocSearchRequest",
"MainIfElseWorkflowStepOutputElseYieldStep",
"MainIfElseWorkflowStepOutputElseReturnStep",
"MainIfElseWorkflowStepOutputElseSleepStep",
"MainIfElseWorkflowStepOutputElseSleepStepSleep",
"MainIfElseWorkflowStepOutputElseErrorWorkflowStep",
"MainIfElseWorkflowStepOutputElseYieldStep",
"MainIfElseWorkflowStepOutputElseWaitForInputStep",
"MainIfElseWorkflowStepOutputElseWaitForInputStepWaitForInput",
"MainSwitchStepOutput",
Expand Down Expand Up @@ -160,11 +160,11 @@
"MainSwitchStepOutputSwitchThenSearchStepSearchVectorDocSearchRequest",
"MainSwitchStepOutputSwitchThenSearchStepSearchTextOnlyDocSearchRequest",
"MainSwitchStepOutputSwitchThenSearchStepSearchHybridDocSearchRequest",
"MainSwitchStepOutputSwitchThenYieldStep",
"MainSwitchStepOutputSwitchThenReturnStep",
"MainSwitchStepOutputSwitchThenSleepStep",
"MainSwitchStepOutputSwitchThenSleepStepSleep",
"MainSwitchStepOutputSwitchThenErrorWorkflowStep",
"MainSwitchStepOutputSwitchThenYieldStep",
"MainSwitchStepOutputSwitchThenWaitForInputStep",
"MainSwitchStepOutputSwitchThenWaitForInputStepWaitForInput",
"MainForeachStepOutput",
Expand Down Expand Up @@ -200,6 +200,7 @@
"MainForeachStepOutputForeachDoSearchStepSearchVectorDocSearchRequest",
"MainForeachStepOutputForeachDoSearchStepSearchTextOnlyDocSearchRequest",
"MainForeachStepOutputForeachDoSearchStepSearchHybridDocSearchRequest",
"MainForeachStepOutputForeachDoYieldStep",
"MainParallelStepOutput",
"MainParallelStepOutputParallel",
"MainParallelStepOutputParallelEvaluateStep",
Expand Down Expand Up @@ -232,6 +233,7 @@
"MainParallelStepOutputParallelSearchStepSearchVectorDocSearchRequest",
"MainParallelStepOutputParallelSearchStepSearchTextOnlyDocSearchRequest",
"MainParallelStepOutputParallelSearchStepSearchHybridDocSearchRequest",
"MainParallelStepOutputParallelYieldStep",
"MainMainOutput",
"MainMainOutputMap",
"MainMainOutputMapEvaluateStep",
Expand Down Expand Up @@ -264,6 +266,7 @@
"MainMainOutputMapSearchStepSearchVectorDocSearchRequest",
"MainMainOutputMapSearchStepSearchTextOnlyDocSearchRequest",
"MainMainOutputMapSearchStepSearchHybridDocSearchRequest",
"MainMainOutputMapYieldStep",
]


Expand Down Expand Up @@ -487,6 +490,14 @@ class MainSearchStep(BaseModel):
kind: Optional[Literal["search"]] = FieldInfo(alias="kind_", default=None)


class MainYieldStep(BaseModel):
workflow: str

arguments: Union[Dict[str, str], Literal["_"], None] = None

kind: Optional[Literal["yield"]] = FieldInfo(alias="kind_", default=None)


class MainReturnStep(BaseModel):
return_: Dict[str, str] = FieldInfo(alias="return")

Expand Down Expand Up @@ -515,14 +526,6 @@ class MainErrorWorkflowStep(BaseModel):
kind: Optional[Literal["error"]] = FieldInfo(alias="kind_", default=None)


class MainYieldStep(BaseModel):
workflow: str

arguments: Union[Dict[str, str], Literal["_"], None] = None

kind: Optional[Literal["yield"]] = FieldInfo(alias="kind_", default=None)


class MainWaitForInputStepWaitForInput(BaseModel):
info: Dict[str, str]

Expand Down Expand Up @@ -762,6 +765,14 @@ class MainIfElseWorkflowStepOutputThenSearchStep(BaseModel):
kind: Optional[Literal["search"]] = FieldInfo(alias="kind_", default=None)


class MainIfElseWorkflowStepOutputThenYieldStep(BaseModel):
workflow: str

arguments: Union[Dict[str, str], Literal["_"], None] = None

kind: Optional[Literal["yield"]] = FieldInfo(alias="kind_", default=None)


class MainIfElseWorkflowStepOutputThenReturnStep(BaseModel):
return_: Dict[str, str] = FieldInfo(alias="return")

Expand Down Expand Up @@ -790,14 +801,6 @@ class MainIfElseWorkflowStepOutputThenErrorWorkflowStep(BaseModel):
kind: Optional[Literal["error"]] = FieldInfo(alias="kind_", default=None)


class MainIfElseWorkflowStepOutputThenYieldStep(BaseModel):
workflow: str

arguments: Union[Dict[str, str], Literal["_"], None] = None

kind: Optional[Literal["yield"]] = FieldInfo(alias="kind_", default=None)


class MainIfElseWorkflowStepOutputThenWaitForInputStepWaitForInput(BaseModel):
info: Dict[str, str]

Expand All @@ -817,10 +820,10 @@ class MainIfElseWorkflowStepOutputThenWaitForInputStep(BaseModel):
MainIfElseWorkflowStepOutputThenLogStep,
MainIfElseWorkflowStepOutputThenEmbedStep,
MainIfElseWorkflowStepOutputThenSearchStep,
MainIfElseWorkflowStepOutputThenYieldStep,
MainIfElseWorkflowStepOutputThenReturnStep,
MainIfElseWorkflowStepOutputThenSleepStep,
MainIfElseWorkflowStepOutputThenErrorWorkflowStep,
MainIfElseWorkflowStepOutputThenYieldStep,
MainIfElseWorkflowStepOutputThenWaitForInputStep,
]

Expand Down Expand Up @@ -1054,6 +1057,14 @@ class MainIfElseWorkflowStepOutputElseSearchStep(BaseModel):
kind: Optional[Literal["search"]] = FieldInfo(alias="kind_", default=None)


class MainIfElseWorkflowStepOutputElseYieldStep(BaseModel):
workflow: str

arguments: Union[Dict[str, str], Literal["_"], None] = None

kind: Optional[Literal["yield"]] = FieldInfo(alias="kind_", default=None)


class MainIfElseWorkflowStepOutputElseReturnStep(BaseModel):
return_: Dict[str, str] = FieldInfo(alias="return")

Expand Down Expand Up @@ -1082,14 +1093,6 @@ class MainIfElseWorkflowStepOutputElseErrorWorkflowStep(BaseModel):
kind: Optional[Literal["error"]] = FieldInfo(alias="kind_", default=None)


class MainIfElseWorkflowStepOutputElseYieldStep(BaseModel):
workflow: str

arguments: Union[Dict[str, str], Literal["_"], None] = None

kind: Optional[Literal["yield"]] = FieldInfo(alias="kind_", default=None)


class MainIfElseWorkflowStepOutputElseWaitForInputStepWaitForInput(BaseModel):
info: Dict[str, str]

Expand All @@ -1109,10 +1112,10 @@ class MainIfElseWorkflowStepOutputElseWaitForInputStep(BaseModel):
MainIfElseWorkflowStepOutputElseLogStep,
MainIfElseWorkflowStepOutputElseEmbedStep,
MainIfElseWorkflowStepOutputElseSearchStep,
MainIfElseWorkflowStepOutputElseYieldStep,
MainIfElseWorkflowStepOutputElseReturnStep,
MainIfElseWorkflowStepOutputElseSleepStep,
MainIfElseWorkflowStepOutputElseErrorWorkflowStep,
MainIfElseWorkflowStepOutputElseYieldStep,
MainIfElseWorkflowStepOutputElseWaitForInputStep,
None,
]
Expand Down Expand Up @@ -1355,6 +1358,14 @@ class MainSwitchStepOutputSwitchThenSearchStep(BaseModel):
kind: Optional[Literal["search"]] = FieldInfo(alias="kind_", default=None)


class MainSwitchStepOutputSwitchThenYieldStep(BaseModel):
workflow: str

arguments: Union[Dict[str, str], Literal["_"], None] = None

kind: Optional[Literal["yield"]] = FieldInfo(alias="kind_", default=None)


class MainSwitchStepOutputSwitchThenReturnStep(BaseModel):
return_: Dict[str, str] = FieldInfo(alias="return")

Expand Down Expand Up @@ -1383,14 +1394,6 @@ class MainSwitchStepOutputSwitchThenErrorWorkflowStep(BaseModel):
kind: Optional[Literal["error"]] = FieldInfo(alias="kind_", default=None)


class MainSwitchStepOutputSwitchThenYieldStep(BaseModel):
workflow: str

arguments: Union[Dict[str, str], Literal["_"], None] = None

kind: Optional[Literal["yield"]] = FieldInfo(alias="kind_", default=None)


class MainSwitchStepOutputSwitchThenWaitForInputStepWaitForInput(BaseModel):
info: Dict[str, str]

Expand All @@ -1410,10 +1413,10 @@ class MainSwitchStepOutputSwitchThenWaitForInputStep(BaseModel):
MainSwitchStepOutputSwitchThenLogStep,
MainSwitchStepOutputSwitchThenEmbedStep,
MainSwitchStepOutputSwitchThenSearchStep,
MainSwitchStepOutputSwitchThenYieldStep,
MainSwitchStepOutputSwitchThenReturnStep,
MainSwitchStepOutputSwitchThenSleepStep,
MainSwitchStepOutputSwitchThenErrorWorkflowStep,
MainSwitchStepOutputSwitchThenYieldStep,
MainSwitchStepOutputSwitchThenWaitForInputStep,
]

Expand Down Expand Up @@ -1657,6 +1660,14 @@ class MainForeachStepOutputForeachDoSearchStep(BaseModel):
kind: Optional[Literal["search"]] = FieldInfo(alias="kind_", default=None)


class MainForeachStepOutputForeachDoYieldStep(BaseModel):
workflow: str

arguments: Union[Dict[str, str], Literal["_"], None] = None

kind: Optional[Literal["yield"]] = FieldInfo(alias="kind_", default=None)


MainForeachStepOutputForeachDo: TypeAlias = Union[
MainForeachStepOutputForeachDoEvaluateStep,
MainForeachStepOutputForeachDoToolCallStep,
Expand All @@ -1666,6 +1677,7 @@ class MainForeachStepOutputForeachDoSearchStep(BaseModel):
MainForeachStepOutputForeachDoLogStep,
MainForeachStepOutputForeachDoEmbedStep,
MainForeachStepOutputForeachDoSearchStep,
MainForeachStepOutputForeachDoYieldStep,
]


Expand Down Expand Up @@ -1908,6 +1920,14 @@ class MainParallelStepOutputParallelSearchStep(BaseModel):
kind: Optional[Literal["search"]] = FieldInfo(alias="kind_", default=None)


class MainParallelStepOutputParallelYieldStep(BaseModel):
workflow: str

arguments: Union[Dict[str, str], Literal["_"], None] = None

kind: Optional[Literal["yield"]] = FieldInfo(alias="kind_", default=None)


MainParallelStepOutputParallel: TypeAlias = Union[
MainParallelStepOutputParallelEvaluateStep,
MainParallelStepOutputParallelToolCallStep,
Expand All @@ -1917,6 +1937,7 @@ class MainParallelStepOutputParallelSearchStep(BaseModel):
MainParallelStepOutputParallelLogStep,
MainParallelStepOutputParallelEmbedStep,
MainParallelStepOutputParallelSearchStep,
MainParallelStepOutputParallelYieldStep,
]


Expand Down Expand Up @@ -2147,6 +2168,14 @@ class MainMainOutputMapSearchStep(BaseModel):
kind: Optional[Literal["search"]] = FieldInfo(alias="kind_", default=None)


class MainMainOutputMapYieldStep(BaseModel):
workflow: str

arguments: Union[Dict[str, str], Literal["_"], None] = None

kind: Optional[Literal["yield"]] = FieldInfo(alias="kind_", default=None)


MainMainOutputMap: TypeAlias = Union[
MainMainOutputMapEvaluateStep,
MainMainOutputMapToolCallStep,
Expand All @@ -2156,6 +2185,7 @@ class MainMainOutputMapSearchStep(BaseModel):
MainMainOutputMapLogStep,
MainMainOutputMapEmbedStep,
MainMainOutputMapSearchStep,
MainMainOutputMapYieldStep,
]


Expand All @@ -2182,10 +2212,10 @@ class MainMainOutput(BaseModel):
MainLogStep,
MainEmbedStep,
MainSearchStep,
MainYieldStep,
MainReturnStep,
MainSleepStep,
MainErrorWorkflowStep,
MainYieldStep,
MainWaitForInputStep,
MainIfElseWorkflowStepOutput,
MainSwitchStepOutput,
Expand Down
Loading

0 comments on commit 917f242

Please sign in to comment.