diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3e9af1b..fbd9082 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.4.0" + ".": "1.5.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 146301c..f6eaceb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 50 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-b2101c3617c9a925c33cfac5fb824c3481c6fab7752b4f9bac21303b92db8f3b.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-89ae6d1058b64645def4b6ada42747bee6d9ffa12aff05fdc382bf7dc3979d14.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index fc80482..b5bd745 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.5.0 (2024-09-25) + +Full Changelog: [v1.4.0...v1.5.0](https://github.com/julep-ai/python-sdk/compare/v1.4.0...v1.5.0) + +### Features + +* **api:** OpenAPI spec update via Stainless API ([#32](https://github.com/julep-ai/python-sdk/issues/32)) ([f359535](https://github.com/julep-ai/python-sdk/commit/f3595355079ad286913b6ac8516f98220c6cb8a4)) + ## 1.4.0 (2024-09-25) Full Changelog: [v1.3.2...v1.4.0](https://github.com/julep-ai/python-sdk/compare/v1.3.2...v1.4.0) diff --git a/pyproject.toml b/pyproject.toml index 4e31654..41ab1ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "julep" -version = "1.4.0" +version = "1.5.0" description = "The official Python library for the julep API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/julep/_version.py b/src/julep/_version.py index 150d35c..c7d6687 100644 --- a/src/julep/_version.py +++ b/src/julep/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "julep" -__version__ = "1.4.0" # x-release-please-version +__version__ = "1.5.0" # x-release-please-version diff --git a/src/julep/types/agents/tool_create_params.py b/src/julep/types/agents/tool_create_params.py index f2a8503..b8f1296 100644 --- a/src/julep/types/agents/tool_create_params.py +++ b/src/julep/types/agents/tool_create_params.py @@ -33,7 +33,7 @@ class Function(TypedDict, total=False): class Integration(TypedDict, total=False): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] diff --git a/src/julep/types/agents/tool_list_response.py b/src/julep/types/agents/tool_list_response.py index 03de346..fb015a7 100644 --- a/src/julep/types/agents/tool_list_response.py +++ b/src/julep/types/agents/tool_list_response.py @@ -18,9 +18,7 @@ class Function(BaseModel): class Integration(BaseModel): - provider: Literal[ - "dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests" - ] + provider: Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] arguments: Optional[object] = None diff --git a/src/julep/types/agents/tool_patch_params.py b/src/julep/types/agents/tool_patch_params.py index 26baaff..16111b3 100644 --- a/src/julep/types/agents/tool_patch_params.py +++ b/src/julep/types/agents/tool_patch_params.py @@ -41,7 +41,7 @@ class Integration(TypedDict, total=False): method: Optional[str] provider: Optional[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] setup: Optional[object] diff --git a/src/julep/types/agents/tool_update_params.py b/src/julep/types/agents/tool_update_params.py index 16d71a8..96363ae 100644 --- a/src/julep/types/agents/tool_update_params.py +++ b/src/julep/types/agents/tool_update_params.py @@ -35,7 +35,7 @@ class Function(TypedDict, total=False): class Integration(TypedDict, total=False): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] diff --git a/src/julep/types/entry.py b/src/julep/types/entry.py index 46afbde..f57cec1 100644 --- a/src/julep/types/entry.py +++ b/src/julep/types/entry.py @@ -66,9 +66,7 @@ class ContentToolFunction(BaseModel): class ContentToolIntegration(BaseModel): - provider: Literal[ - "dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests" - ] + provider: Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] arguments: Optional[object] = None @@ -159,9 +157,7 @@ class ContentUnionMember5ToolFunction(BaseModel): class ContentUnionMember5ToolIntegration(BaseModel): - provider: Literal[ - "dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests" - ] + provider: Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] arguments: Optional[object] = None diff --git a/src/julep/types/session_chat_params.py b/src/julep/types/session_chat_params.py index 20f25d1..29c2501 100644 --- a/src/julep/types/session_chat_params.py +++ b/src/julep/types/session_chat_params.py @@ -105,7 +105,7 @@ class ToolFunction(TypedDict, total=False): class ToolIntegration(TypedDict, total=False): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] diff --git a/src/julep/types/task.py b/src/julep/types/task.py index a2dee91..7ce3137 100644 --- a/src/julep/types/task.py +++ b/src/julep/types/task.py @@ -359,9 +359,7 @@ class MainPromptStepOutputToolsUnionMember1CreateToolRequestFunction(BaseModel): class MainPromptStepOutputToolsUnionMember1CreateToolRequestIntegration(BaseModel): - provider: Literal[ - "dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests" - ] + provider: Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] arguments: Optional[object] = None @@ -631,9 +629,7 @@ class MainIfElseWorkflowStepOutputThenPromptStepOutputToolsUnionMember1CreateToo class MainIfElseWorkflowStepOutputThenPromptStepOutputToolsUnionMember1CreateToolRequestIntegration(BaseModel): - provider: Literal[ - "dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests" - ] + provider: Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] arguments: Optional[object] = None @@ -925,9 +921,7 @@ class MainIfElseWorkflowStepOutputElsePromptStepOutputToolsUnionMember1CreateToo class MainIfElseWorkflowStepOutputElsePromptStepOutputToolsUnionMember1CreateToolRequestIntegration(BaseModel): - provider: Literal[ - "dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests" - ] + provider: Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] arguments: Optional[object] = None @@ -1230,9 +1224,7 @@ class MainSwitchStepOutputSwitchThenPromptStepOutputToolsUnionMember1CreateToolR class MainSwitchStepOutputSwitchThenPromptStepOutputToolsUnionMember1CreateToolRequestIntegration(BaseModel): - provider: Literal[ - "dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests" - ] + provider: Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] arguments: Optional[object] = None @@ -1534,9 +1526,7 @@ class MainForeachStepOutputForeachDoPromptStepOutputToolsUnionMember1CreateToolR class MainForeachStepOutputForeachDoPromptStepOutputToolsUnionMember1CreateToolRequestIntegration(BaseModel): - provider: Literal[ - "dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests" - ] + provider: Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] arguments: Optional[object] = None @@ -1787,9 +1777,7 @@ class MainParallelStepOutputParallelPromptStepOutputToolsUnionMember1CreateToolR class MainParallelStepOutputParallelPromptStepOutputToolsUnionMember1CreateToolRequestIntegration(BaseModel): - provider: Literal[ - "dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests" - ] + provider: Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] arguments: Optional[object] = None @@ -2030,9 +2018,7 @@ class MainMainOutputMapPromptStepOutputToolsUnionMember1CreateToolRequestFunctio class MainMainOutputMapPromptStepOutputToolsUnionMember1CreateToolRequestIntegration(BaseModel): - provider: Literal[ - "dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests" - ] + provider: Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] arguments: Optional[object] = None diff --git a/src/julep/types/task_create_or_update_params.py b/src/julep/types/task_create_or_update_params.py index 4cc3770..a042b66 100644 --- a/src/julep/types/task_create_or_update_params.py +++ b/src/julep/types/task_create_or_update_params.py @@ -376,7 +376,7 @@ class MainPromptStepInputToolsUnionMember1CreateToolRequestFunction(TypedDict, t class MainPromptStepInputToolsUnionMember1CreateToolRequestIntegration(TypedDict, total=False): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] @@ -651,7 +651,7 @@ class MainIfElseWorkflowStepInputThenPromptStepInputToolsUnionMember1CreateToolR TypedDict, total=False ): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] @@ -946,7 +946,7 @@ class MainIfElseWorkflowStepInputElsePromptStepInputToolsUnionMember1CreateToolR TypedDict, total=False ): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] @@ -1248,7 +1248,7 @@ class MainSwitchStepInputSwitchThenPromptStepInputToolsUnionMember1CreateToolReq class MainSwitchStepInputSwitchThenPromptStepInputToolsUnionMember1CreateToolRequestIntegration(TypedDict, total=False): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] @@ -1545,7 +1545,7 @@ class MainForeachStepInputForeachDoPromptStepInputToolsUnionMember1CreateToolReq class MainForeachStepInputForeachDoPromptStepInputToolsUnionMember1CreateToolRequestIntegration(TypedDict, total=False): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] @@ -1798,7 +1798,7 @@ class MainParallelStepInputParallelPromptStepInputToolsUnionMember1CreateToolReq class MainParallelStepInputParallelPromptStepInputToolsUnionMember1CreateToolRequestIntegration(TypedDict, total=False): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] @@ -2031,7 +2031,7 @@ class MainMainInputMapPromptStepInputToolsUnionMember1CreateToolRequestFunction( class MainMainInputMapPromptStepInputToolsUnionMember1CreateToolRequestIntegration(TypedDict, total=False): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] diff --git a/src/julep/types/task_create_params.py b/src/julep/types/task_create_params.py index 8b8d5e1..fa5a0e4 100644 --- a/src/julep/types/task_create_params.py +++ b/src/julep/types/task_create_params.py @@ -374,7 +374,7 @@ class MainPromptStepInputToolsUnionMember1CreateToolRequestFunction(TypedDict, t class MainPromptStepInputToolsUnionMember1CreateToolRequestIntegration(TypedDict, total=False): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] @@ -649,7 +649,7 @@ class MainIfElseWorkflowStepInputThenPromptStepInputToolsUnionMember1CreateToolR TypedDict, total=False ): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] @@ -944,7 +944,7 @@ class MainIfElseWorkflowStepInputElsePromptStepInputToolsUnionMember1CreateToolR TypedDict, total=False ): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] @@ -1246,7 +1246,7 @@ class MainSwitchStepInputSwitchThenPromptStepInputToolsUnionMember1CreateToolReq class MainSwitchStepInputSwitchThenPromptStepInputToolsUnionMember1CreateToolRequestIntegration(TypedDict, total=False): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] @@ -1543,7 +1543,7 @@ class MainForeachStepInputForeachDoPromptStepInputToolsUnionMember1CreateToolReq class MainForeachStepInputForeachDoPromptStepInputToolsUnionMember1CreateToolRequestIntegration(TypedDict, total=False): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] @@ -1796,7 +1796,7 @@ class MainParallelStepInputParallelPromptStepInputToolsUnionMember1CreateToolReq class MainParallelStepInputParallelPromptStepInputToolsUnionMember1CreateToolRequestIntegration(TypedDict, total=False): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] @@ -2029,7 +2029,7 @@ class MainMainInputMapPromptStepInputToolsUnionMember1CreateToolRequestFunction( class MainMainInputMapPromptStepInputToolsUnionMember1CreateToolRequestIntegration(TypedDict, total=False): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object] diff --git a/src/julep/types/tool.py b/src/julep/types/tool.py index e94f72c..65ae99e 100644 --- a/src/julep/types/tool.py +++ b/src/julep/types/tool.py @@ -17,9 +17,7 @@ class Function(BaseModel): class Integration(BaseModel): - provider: Literal[ - "dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests" - ] + provider: Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] arguments: Optional[object] = None diff --git a/src/julep/types/tool_param.py b/src/julep/types/tool_param.py index 8408385..9bb8232 100644 --- a/src/julep/types/tool_param.py +++ b/src/julep/types/tool_param.py @@ -18,7 +18,7 @@ class Function(TypedDict, total=False): class Integration(TypedDict, total=False): provider: Required[ - Literal["dummy", "dall-e", "duckduckgo", "hackernews", "weather", "wikipedia", "twitter", "webpage", "requests"] + Literal["dummy", "dalle_image_generator", "duckduckgo_search", "hacker_news", "weather", "wikipedia"] ] arguments: Optional[object]