Skip to content

Commit

Permalink
feat(api): update via SDK Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed May 14, 2024
1 parent aca596f commit 976ea00
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 49 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: 20
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/structify%2Fstructify-2988f1610b40c428d0b457b5b596f5ca80d371daf3e99ef0317dad31d8f2dfa3.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/structify%2Fstructify-aa1bdd07a9fcf09044a5dae55e26b5bf3fcd742b8f3a86e1e815f67c45cf5030.yml
21 changes: 10 additions & 11 deletions src/structify/resources/structure/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from __future__ import annotations

from typing import Optional, overload
from typing_extensions import Literal

import httpx

Expand Down Expand Up @@ -45,7 +44,7 @@ def create(
dataset_name: str,
text: run_create_params.Variant0Text,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -78,7 +77,7 @@ def create(
dataset_name: str,
document: run_create_params.Variant1Document,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -111,7 +110,7 @@ def create(
dataset_name: str,
web: run_create_params.Variant2Web,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -144,7 +143,7 @@ def create(
dataset_name: str,
sec_filing: run_create_params.Variant3SecFiling,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -179,7 +178,7 @@ def create(
dataset_name: str,
text: run_create_params.Variant0Text | NotGiven = NOT_GIVEN,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | NotGiven = NOT_GIVEN,
document: run_create_params.Variant1Document | NotGiven = NOT_GIVEN,
web: run_create_params.Variant2Web | NotGiven = NOT_GIVEN,
sec_filing: run_create_params.Variant3SecFiling | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -235,7 +234,7 @@ async def create(
dataset_name: str,
text: run_create_params.Variant0Text,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -268,7 +267,7 @@ async def create(
dataset_name: str,
document: run_create_params.Variant1Document,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -301,7 +300,7 @@ async def create(
dataset_name: str,
web: run_create_params.Variant2Web,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -334,7 +333,7 @@ async def create(
dataset_name: str,
sec_filing: run_create_params.Variant3SecFiling,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -369,7 +368,7 @@ async def create(
dataset_name: str,
text: run_create_params.Variant0Text | NotGiven = NOT_GIVEN,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | NotGiven = NOT_GIVEN,
document: run_create_params.Variant1Document | NotGiven = NOT_GIVEN,
web: run_create_params.Variant2Web | NotGiven = NOT_GIVEN,
sec_filing: run_create_params.Variant3SecFiling | NotGiven = NOT_GIVEN,
Expand Down
21 changes: 10 additions & 11 deletions src/structify/resources/structure/run_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from __future__ import annotations

from typing import Optional, overload
from typing_extensions import Literal

import httpx

Expand Down Expand Up @@ -45,7 +44,7 @@ def create(
dataset_name: str,
text: run_async_create_params.Variant0Text,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -77,7 +76,7 @@ def create(
dataset_name: str,
document: run_async_create_params.Variant1Document,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -109,7 +108,7 @@ def create(
dataset_name: str,
web: run_async_create_params.Variant2Web,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -141,7 +140,7 @@ def create(
dataset_name: str,
sec_filing: run_async_create_params.Variant3SecFiling,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -175,7 +174,7 @@ def create(
dataset_name: str,
text: run_async_create_params.Variant0Text | NotGiven = NOT_GIVEN,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | NotGiven = NOT_GIVEN,
document: run_async_create_params.Variant1Document | NotGiven = NOT_GIVEN,
web: run_async_create_params.Variant2Web | NotGiven = NOT_GIVEN,
sec_filing: run_async_create_params.Variant3SecFiling | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -231,7 +230,7 @@ async def create(
dataset_name: str,
text: run_async_create_params.Variant0Text,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -263,7 +262,7 @@ async def create(
dataset_name: str,
document: run_async_create_params.Variant1Document,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -295,7 +294,7 @@ async def create(
dataset_name: str,
web: run_async_create_params.Variant2Web,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -327,7 +326,7 @@ async def create(
dataset_name: str,
sec_filing: run_async_create_params.Variant3SecFiling,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -361,7 +360,7 @@ async def create(
dataset_name: str,
text: run_async_create_params.Variant0Text | NotGiven = NOT_GIVEN,
custom_instruction: Optional[str] | NotGiven = NOT_GIVEN,
llm: Optional[Literal["Gpt4V", "Structify", "Human"]] | NotGiven = NOT_GIVEN,
llm: Optional[object] | NotGiven = NOT_GIVEN,
document: run_async_create_params.Variant1Document | NotGiven = NOT_GIVEN,
web: run_async_create_params.Variant2Web | NotGiven = NOT_GIVEN,
sec_filing: run_async_create_params.Variant3SecFiling | NotGiven = NOT_GIVEN,
Expand Down
10 changes: 5 additions & 5 deletions src/structify/types/structure/run_async_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

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

from ..._utils import PropertyInfo

Expand All @@ -27,7 +27,7 @@ class Variant0(TypedDict, total=False):

custom_instruction: Optional[str]

llm: Optional[Literal["Gpt4V", "Structify", "Human"]]
llm: Optional[object]


class Variant0Text(TypedDict, total=False):
Expand All @@ -41,7 +41,7 @@ class Variant1(TypedDict, total=False):

custom_instruction: Optional[str]

llm: Optional[Literal["Gpt4V", "Structify", "Human"]]
llm: Optional[object]


class Variant1Document(TypedDict, total=False):
Expand All @@ -55,7 +55,7 @@ class Variant2(TypedDict, total=False):

custom_instruction: Optional[str]

llm: Optional[Literal["Gpt4V", "Structify", "Human"]]
llm: Optional[object]


class Variant2Web(TypedDict, total=False):
Expand All @@ -71,7 +71,7 @@ class Variant3(TypedDict, total=False):

custom_instruction: Optional[str]

llm: Optional[Literal["Gpt4V", "Structify", "Human"]]
llm: Optional[object]


class Variant3SecFiling(TypedDict, total=False):
Expand Down
10 changes: 5 additions & 5 deletions src/structify/types/structure/run_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

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

from ..._utils import PropertyInfo

Expand All @@ -27,7 +27,7 @@ class Variant0(TypedDict, total=False):

custom_instruction: Optional[str]

llm: Optional[Literal["Gpt4V", "Structify", "Human"]]
llm: Optional[object]


class Variant0Text(TypedDict, total=False):
Expand All @@ -41,7 +41,7 @@ class Variant1(TypedDict, total=False):

custom_instruction: Optional[str]

llm: Optional[Literal["Gpt4V", "Structify", "Human"]]
llm: Optional[object]


class Variant1Document(TypedDict, total=False):
Expand All @@ -55,7 +55,7 @@ class Variant2(TypedDict, total=False):

custom_instruction: Optional[str]

llm: Optional[Literal["Gpt4V", "Structify", "Human"]]
llm: Optional[object]


class Variant2Web(TypedDict, total=False):
Expand All @@ -71,7 +71,7 @@ class Variant3(TypedDict, total=False):

custom_instruction: Optional[str]

llm: Optional[Literal["Gpt4V", "Structify", "Human"]]
llm: Optional[object]


class Variant3SecFiling(TypedDict, total=False):
Expand Down
16 changes: 8 additions & 8 deletions tests/api_resources/structure/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_method_create_with_all_params_overload_1(self, client: Structify) -> No
dataset_name="string",
text={"text_content": "string"},
custom_instruction="string",
llm="Gpt4V",
llm={},
)
assert_matches_type(object, run, path=["response"])

Expand Down Expand Up @@ -74,7 +74,7 @@ def test_method_create_with_all_params_overload_2(self, client: Structify) -> No
dataset_name="string",
document={"path": "string"},
custom_instruction="string",
llm="Gpt4V",
llm={},
)
assert_matches_type(object, run, path=["response"])

Expand Down Expand Up @@ -121,7 +121,7 @@ def test_method_create_with_all_params_overload_3(self, client: Structify) -> No
"starting_website": "string",
},
custom_instruction="string",
llm="Gpt4V",
llm={},
)
assert_matches_type(object, run, path=["response"])

Expand Down Expand Up @@ -169,7 +169,7 @@ def test_method_create_with_all_params_overload_4(self, client: Structify) -> No
"year": 0,
},
custom_instruction="string",
llm="Gpt4V",
llm={},
)
assert_matches_type(object, run, path=["response"])

Expand Down Expand Up @@ -217,7 +217,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn
dataset_name="string",
text={"text_content": "string"},
custom_instruction="string",
llm="Gpt4V",
llm={},
)
assert_matches_type(object, run, path=["response"])

Expand Down Expand Up @@ -261,7 +261,7 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn
dataset_name="string",
document={"path": "string"},
custom_instruction="string",
llm="Gpt4V",
llm={},
)
assert_matches_type(object, run, path=["response"])

Expand Down Expand Up @@ -308,7 +308,7 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn
"starting_website": "string",
},
custom_instruction="string",
llm="Gpt4V",
llm={},
)
assert_matches_type(object, run, path=["response"])

Expand Down Expand Up @@ -356,7 +356,7 @@ async def test_method_create_with_all_params_overload_4(self, async_client: Asyn
"year": 0,
},
custom_instruction="string",
llm="Gpt4V",
llm={},
)
assert_matches_type(object, run, path=["response"])

Expand Down
Loading

0 comments on commit 976ea00

Please sign in to comment.