Skip to content

Commit

Permalink
Release v0.2.19
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Mar 11, 2024
1 parent d86a178 commit 51033e9
Show file tree
Hide file tree
Showing 3 changed files with 6 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.2.18"
version = "v0.2.19"
description = ""
readme = "README.md"
authors = []
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 @@ -16,7 +16,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.2.18",
"X-Fern-SDK-Version": "v0.2.19",
}
token = self._get_token()
if token is not None:
Expand Down
4 changes: 4 additions & 0 deletions src/superagent/types/tool_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class ToolType(str, enum.Enum):
FUNCTION = "FUNCTION"
HTTP = "HTTP"
SUPERRAG = "SUPERRAG"
RESEARCH = "RESEARCH"

def visit(
self,
Expand All @@ -52,6 +53,7 @@ def visit(
function: typing.Callable[[], T_Result],
http: typing.Callable[[], T_Result],
superrag: typing.Callable[[], T_Result],
research: typing.Callable[[], T_Result],
) -> T_Result:
if self is ToolType.ALGOLIA:
return algolia()
Expand Down Expand Up @@ -91,3 +93,5 @@ def visit(
return http()
if self is ToolType.SUPERRAG:
return superrag()
if self is ToolType.RESEARCH:
return research()

0 comments on commit 51033e9

Please sign in to comment.