diff --git a/pyproject.toml b/pyproject.toml index a8431ba..d2e75b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "superagent-py" -version = "v0.1.12" +version = "v0.1.13" description = "" readme = "README.md" authors = [] diff --git a/src/superagent/core/client_wrapper.py b/src/superagent/core/client_wrapper.py index b962a60..1d1d71a 100644 --- a/src/superagent/core/client_wrapper.py +++ b/src/superagent/core/client_wrapper.py @@ -14,7 +14,7 @@ def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { "X-Fern-Language": "Python", "X-Fern-SDK-Name": "superagent-py", - "X-Fern-SDK-Version": "v0.1.12", + "X-Fern-SDK-Version": "v0.1.13", } token = self._get_token() if token is not None: diff --git a/src/superagent/types/app_models_request_datasource.py b/src/superagent/types/app_models_request_datasource.py index 77790e5..2ba69cf 100644 --- a/src/superagent/types/app_models_request_datasource.py +++ b/src/superagent/types/app_models_request_datasource.py @@ -12,6 +12,7 @@ class AppModelsRequestDatasource(pydantic.BaseModel): name: str description: str type: str + content: typing.Optional[str] url: typing.Optional[str] metadata: typing.Optional[typing.Dict[str, typing.Any]] diff --git a/src/superagent/types/llm_provider.py b/src/superagent/types/llm_provider.py index e4512aa..82e4a76 100644 --- a/src/superagent/types/llm_provider.py +++ b/src/superagent/types/llm_provider.py @@ -1,5 +1,21 @@ # This file was auto-generated by Fern from our API Definition. -import typing_extensions +import enum +import typing -LlmProvider = typing_extensions.Literal["OPENAI"] +T_Result = typing.TypeVar("T_Result") + + +class LlmProvider(str, enum.Enum): + """ + An enumeration. + """ + + OPENAI = "OPENAI" + AZURE_OPENAI = "AZURE_OPENAI" + + def visit(self, openai: typing.Callable[[], T_Result], azure_openai: typing.Callable[[], T_Result]) -> T_Result: + if self is LlmProvider.OPENAI: + return openai() + if self is LlmProvider.AZURE_OPENAI: + return azure_openai() diff --git a/src/superagent/types/prisma_models_api_user.py b/src/superagent/types/prisma_models_api_user.py index 9b52661..8987776 100644 --- a/src/superagent/types/prisma_models_api_user.py +++ b/src/superagent/types/prisma_models_api_user.py @@ -24,7 +24,7 @@ class PrismaModelsApiUser(pydantic.BaseModel): llms: typing.Optional[typing.List[PrismaModelsLlm]] datasources: typing.Optional[typing.List[PrismaModelsDatasource]] tools: typing.Optional[typing.List[PrismaModelsTool]] - worflows: typing.Optional[typing.List[PrismaModelsWorkflow]] + workflows: typing.Optional[typing.List[PrismaModelsWorkflow]] def json(self, **kwargs: typing.Any) -> str: kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs} diff --git a/src/superagent/types/prisma_models_datasource.py b/src/superagent/types/prisma_models_datasource.py index dbb1ba6..4723f18 100644 --- a/src/superagent/types/prisma_models_datasource.py +++ b/src/superagent/types/prisma_models_datasource.py @@ -19,6 +19,7 @@ class PrismaModelsDatasource(pydantic.BaseModel): id: str name: str + content: typing.Optional[str] description: typing.Optional[str] url: typing.Optional[str] type: DatasourceType