Skip to content

Commit

Permalink
Release 0.0.99
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Sep 15, 2023
1 parent cd97253 commit dffd068
Show file tree
Hide file tree
Showing 70 changed files with 1,623 additions and 2,720 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.0.60"
version = "v0.0.99"
description = ""
readme = "README.md"
authors = []
Expand Down
131 changes: 46 additions & 85 deletions src/superagent/__init__.py
Original file line number Diff line number Diff line change
@@ -1,101 +1,62 @@
# This file was auto-generated by Fern from our API Definition.

from .types import (
AgentDocumentListOuput,
AgentDocumentOutput,
AgentListOutput,
AgentOutput,
AgentToolListOutput,
AgentToolOutput,
AgentType,
ApiTokenListOutput,
ApiTokenOutput,
AppLibModelsResponseAgent,
AppLibModelsResponseAgentDocument,
AppLibModelsResponseAgentTool,
AppLibModelsResponseApiToken,
AppLibModelsResponseDocument,
AppLibModelsResponsePrompt,
AppLibModelsResponseTag,
AppLibModelsResponseTool,
DocumentListOutput,
DocumentOuput,
DocumentType,
AgentDatasosurceList,
AgentList,
AgentRunList,
AgentToolList,
ApiUser,
AppModelsRequestAgent,
AppModelsRequestDatasource,
AppModelsRequestLlm,
AppModelsRequestTool,
AppModelsRequestWorkflow,
AppModelsResponseAgent,
AppModelsResponseAgentInvoke,
AppModelsResponseDatasource,
AppModelsResponseLlm,
AppModelsResponseTool,
AppModelsResponseWorkflow,
DatasourceList,
HttpValidationError,
PredictAgentOutput,
PromptListOutput,
PromptOutput,
SignInOutput,
TagListOutput,
TagOutput,
ToolListOutput,
ToolOutput,
ToolType,
User,
UserOutput,
LlmList,
ToolList,
ValidationError,
ValidationErrorLocItem,
WorkflowList,
)
from .errors import UnprocessableEntityError
from .resources import (
agent,
agent_documents,
agent_tools,
api_token,
auth,
documents,
prompts,
tags,
tools,
traces,
user,
)
from .resources import agent, api_user, datasource, llm, tool, workflow

__all__ = [
"AgentDocumentListOuput",
"AgentDocumentOutput",
"AgentListOutput",
"AgentOutput",
"AgentToolListOutput",
"AgentToolOutput",
"AgentType",
"ApiTokenListOutput",
"ApiTokenOutput",
"AppLibModelsResponseAgent",
"AppLibModelsResponseAgentDocument",
"AppLibModelsResponseAgentTool",
"AppLibModelsResponseApiToken",
"AppLibModelsResponseDocument",
"AppLibModelsResponsePrompt",
"AppLibModelsResponseTag",
"AppLibModelsResponseTool",
"DocumentListOutput",
"DocumentOuput",
"DocumentType",
"AgentDatasosurceList",
"AgentList",
"AgentRunList",
"AgentToolList",
"ApiUser",
"AppModelsRequestAgent",
"AppModelsRequestDatasource",
"AppModelsRequestLlm",
"AppModelsRequestTool",
"AppModelsRequestWorkflow",
"AppModelsResponseAgent",
"AppModelsResponseAgentInvoke",
"AppModelsResponseDatasource",
"AppModelsResponseLlm",
"AppModelsResponseTool",
"AppModelsResponseWorkflow",
"DatasourceList",
"HttpValidationError",
"PredictAgentOutput",
"PromptListOutput",
"PromptOutput",
"SignInOutput",
"TagListOutput",
"TagOutput",
"ToolListOutput",
"ToolOutput",
"ToolType",
"LlmList",
"ToolList",
"UnprocessableEntityError",
"User",
"UserOutput",
"ValidationError",
"ValidationErrorLocItem",
"WorkflowList",
"agent",
"agent_documents",
"agent_tools",
"api_token",
"auth",
"documents",
"prompts",
"tags",
"tools",
"traces",
"user",
"api_user",
"datasource",
"llm",
"tool",
"workflow",
]
45 changes: 15 additions & 30 deletions src/superagent/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@

from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from .resources.agent.client import AgentClient, AsyncAgentClient
from .resources.agent_documents.client import AgentDocumentsClient, AsyncAgentDocumentsClient
from .resources.agent_tools.client import AgentToolsClient, AsyncAgentToolsClient
from .resources.api_token.client import ApiTokenClient, AsyncApiTokenClient
from .resources.auth.client import AsyncAuthClient, AuthClient
from .resources.documents.client import AsyncDocumentsClient, DocumentsClient
from .resources.prompts.client import AsyncPromptsClient, PromptsClient
from .resources.tags.client import AsyncTagsClient, TagsClient
from .resources.tools.client import AsyncToolsClient, ToolsClient
from .resources.traces.client import AsyncTracesClient, TracesClient
from .resources.user.client import AsyncUserClient, UserClient
from .resources.api_user.client import ApiUserClient, AsyncApiUserClient
from .resources.datasource.client import AsyncDatasourceClient, DatasourceClient
from .resources.llm.client import AsyncLlmClient, LlmClient
from .resources.tool.client import AsyncToolClient, ToolClient
from .resources.workflow.client import AsyncWorkflowClient, WorkflowClient


class Superagent:
Expand All @@ -30,16 +25,11 @@ def __init__(
base_url=base_url, token=token, httpx_client=httpx.Client(timeout=timeout)
)
self.agent = AgentClient(client_wrapper=self._client_wrapper)
self.agent_documents = AgentDocumentsClient(client_wrapper=self._client_wrapper)
self.tags = TagsClient(client_wrapper=self._client_wrapper)
self.agent_tools = AgentToolsClient(client_wrapper=self._client_wrapper)
self.auth = AuthClient(client_wrapper=self._client_wrapper)
self.user = UserClient(client_wrapper=self._client_wrapper)
self.api_token = ApiTokenClient(client_wrapper=self._client_wrapper)
self.documents = DocumentsClient(client_wrapper=self._client_wrapper)
self.prompts = PromptsClient(client_wrapper=self._client_wrapper)
self.tools = ToolsClient(client_wrapper=self._client_wrapper)
self.traces = TracesClient(client_wrapper=self._client_wrapper)
self.llm = LlmClient(client_wrapper=self._client_wrapper)
self.api_user = ApiUserClient(client_wrapper=self._client_wrapper)
self.datasource = DatasourceClient(client_wrapper=self._client_wrapper)
self.tool = ToolClient(client_wrapper=self._client_wrapper)
self.workflow = WorkflowClient(client_wrapper=self._client_wrapper)


class AsyncSuperagent:
Expand All @@ -54,13 +44,8 @@ def __init__(
base_url=base_url, token=token, httpx_client=httpx.AsyncClient(timeout=timeout)
)
self.agent = AsyncAgentClient(client_wrapper=self._client_wrapper)
self.agent_documents = AsyncAgentDocumentsClient(client_wrapper=self._client_wrapper)
self.tags = AsyncTagsClient(client_wrapper=self._client_wrapper)
self.agent_tools = AsyncAgentToolsClient(client_wrapper=self._client_wrapper)
self.auth = AsyncAuthClient(client_wrapper=self._client_wrapper)
self.user = AsyncUserClient(client_wrapper=self._client_wrapper)
self.api_token = AsyncApiTokenClient(client_wrapper=self._client_wrapper)
self.documents = AsyncDocumentsClient(client_wrapper=self._client_wrapper)
self.prompts = AsyncPromptsClient(client_wrapper=self._client_wrapper)
self.tools = AsyncToolsClient(client_wrapper=self._client_wrapper)
self.traces = AsyncTracesClient(client_wrapper=self._client_wrapper)
self.llm = AsyncLlmClient(client_wrapper=self._client_wrapper)
self.api_user = AsyncApiUserClient(client_wrapper=self._client_wrapper)
self.datasource = AsyncDatasourceClient(client_wrapper=self._client_wrapper)
self.tool = AsyncToolClient(client_wrapper=self._client_wrapper)
self.workflow = AsyncWorkflowClient(client_wrapper=self._client_wrapper)
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.0.60",
"X-Fern-SDK-Version": "v0.0.99",
}
token = self._get_token()
if token is not None:
Expand Down
16 changes: 2 additions & 14 deletions src/superagent/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# This file was auto-generated by Fern from our API Definition.

from . import agent, agent_documents, agent_tools, api_token, auth, documents, prompts, tags, tools, traces, user
from . import agent, api_user, datasource, llm, tool, workflow

__all__ = [
"agent",
"agent_documents",
"agent_tools",
"api_token",
"auth",
"documents",
"prompts",
"tags",
"tools",
"traces",
"user",
]
__all__ = ["agent", "api_user", "datasource", "llm", "tool", "workflow"]
Loading

0 comments on commit dffd068

Please sign in to comment.