Skip to content

Commit

Permalink
Release v0.1.73
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Feb 1, 2024
1 parent ea2b719 commit a73f673
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "superagent-py"
version = "v0.1.72"
version = "v0.1.73"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 2 additions & 0 deletions src/superagent/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
AgentList,
AgentRunList,
AgentToolList,
AgentType,
AppModelsRequestDatasource,
AppModelsRequestLlm,
AppModelsRequestTool,
Expand Down Expand Up @@ -58,6 +59,7 @@
"AgentList",
"AgentRunList",
"AgentToolList",
"AgentType",
"AppModelsRequestDatasource",
"AppModelsRequestLlm",
"AppModelsRequestTool",
Expand Down
2 changes: 1 addition & 1 deletion src/superagent/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.72",
"X-Fern-SDK-Version": "v0.1.73",
}
token = self._get_token()
if token is not None:
Expand Down
2 changes: 2 additions & 0 deletions src/superagent/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from .agent_list import AgentList
from .agent_run_list import AgentRunList
from .agent_tool_list import AgentToolList
from .agent_type import AgentType
from .app_models_request_datasource import AppModelsRequestDatasource
from .app_models_request_llm import AppModelsRequestLlm
from .app_models_request_tool import AppModelsRequestTool
Expand Down Expand Up @@ -53,6 +54,7 @@
"AgentList",
"AgentRunList",
"AgentToolList",
"AgentType",
"AppModelsRequestDatasource",
"AppModelsRequestLlm",
"AppModelsRequestTool",
Expand Down
23 changes: 23 additions & 0 deletions src/superagent/types/agent_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This file was auto-generated by Fern from our API Definition.

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class AgentType(str, enum.Enum):
"""
An enumeration.
"""

SUPERAGENT = "SUPERAGENT"
OPENAI_ASSISTANT = "OPENAI_ASSISTANT"

def visit(
self, superagent: typing.Callable[[], T_Result], openai_assistant: typing.Callable[[], T_Result]
) -> T_Result:
if self is AgentType.SUPERAGENT:
return superagent()
if self is AgentType.OPENAI_ASSISTANT:
return openai_assistant()
2 changes: 2 additions & 0 deletions src/superagent/types/prisma_models_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import typing

from ..core.datetime_utils import serialize_datetime
from .agent_type import AgentType
from .llm_model import LlmModel

try:
Expand All @@ -20,6 +21,7 @@ class PrismaModelsAgent(pydantic.BaseModel):
"""

id: str
type: AgentType
name: str
avatar: typing.Optional[str]
initial_message: typing.Optional[str] = pydantic.Field(alias="initialMessage")
Expand Down

0 comments on commit a73f673

Please sign in to comment.