seekrai 0.5.28__py3-none-any.whl → 0.5.29__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- seekrai/types/__init__.py +11 -0
- seekrai/types/agents/__init__.py +2 -0
- seekrai/types/agents/tools/__init__.py +2 -0
- seekrai/types/agents/tools/schemas/__init__.py +2 -0
- seekrai/types/agents/tools/schemas/agent_as_tool.py +16 -0
- seekrai/types/agents/tools/tool_types.py +5 -1
- seekrai/types/enums.py +1 -0
- seekrai/types/tools.py +22 -3
- {seekrai-0.5.28.dist-info → seekrai-0.5.29.dist-info}/METADATA +1 -1
- {seekrai-0.5.28.dist-info → seekrai-0.5.29.dist-info}/RECORD +13 -12
- {seekrai-0.5.28.dist-info → seekrai-0.5.29.dist-info}/WHEEL +0 -0
- {seekrai-0.5.28.dist-info → seekrai-0.5.29.dist-info}/entry_points.txt +0 -0
- {seekrai-0.5.28.dist-info → seekrai-0.5.29.dist-info}/licenses/LICENSE +0 -0
seekrai/types/__init__.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from seekrai.types.abstract import SeekrFlowClient
|
|
2
2
|
from seekrai.types.agents import (
|
|
3
3
|
Agent,
|
|
4
|
+
AgentAsToolLegacy,
|
|
4
5
|
AgentDeleteResponse,
|
|
5
6
|
CreateAgentRequest,
|
|
6
7
|
EnvConfig,
|
|
@@ -47,6 +48,7 @@ from seekrai.types.agents import (
|
|
|
47
48
|
WebSearchEnv,
|
|
48
49
|
)
|
|
49
50
|
from seekrai.types.agents.tools.schemas import (
|
|
51
|
+
AgentAsToolLegacy,
|
|
50
52
|
FileSearch,
|
|
51
53
|
FileSearchEnv,
|
|
52
54
|
RunPython,
|
|
@@ -120,6 +122,9 @@ from seekrai.types.projects import (
|
|
|
120
122
|
ProjectWithRuns,
|
|
121
123
|
)
|
|
122
124
|
from seekrai.types.tools import (
|
|
125
|
+
AgentAsTool,
|
|
126
|
+
AgentAsToolConfig,
|
|
127
|
+
CreateAgentAsTool,
|
|
123
128
|
CreateFileSearch,
|
|
124
129
|
CreateRunPython,
|
|
125
130
|
CreateToolRequest,
|
|
@@ -132,6 +137,7 @@ from seekrai.types.tools import (
|
|
|
132
137
|
ToolAgentSummaryResponse,
|
|
133
138
|
ToolDeleteResponse,
|
|
134
139
|
ToolResponse,
|
|
140
|
+
UpdateAgentAsTool,
|
|
135
141
|
UpdateFileSearch,
|
|
136
142
|
UpdateRunPython,
|
|
137
143
|
UpdateToolRequest,
|
|
@@ -258,4 +264,9 @@ __all__ = [
|
|
|
258
264
|
"RunPythonEnv",
|
|
259
265
|
"WebSearch",
|
|
260
266
|
"WebSearchEnv",
|
|
267
|
+
"AgentAsToolLegacy",
|
|
268
|
+
"AgentAsTool",
|
|
269
|
+
"CreateAgentAsTool",
|
|
270
|
+
"AgentAsToolConfig",
|
|
271
|
+
"UpdateAgentAsTool",
|
|
261
272
|
]
|
seekrai/types/agents/__init__.py
CHANGED
|
@@ -51,6 +51,7 @@ from seekrai.types.agents.tools import (
|
|
|
51
51
|
ToolBase,
|
|
52
52
|
)
|
|
53
53
|
from seekrai.types.agents.tools.schemas import (
|
|
54
|
+
AgentAsToolLegacy,
|
|
54
55
|
FileSearch,
|
|
55
56
|
FileSearchEnv,
|
|
56
57
|
RunPython,
|
|
@@ -106,6 +107,7 @@ __all__ = [
|
|
|
106
107
|
"RunPythonEnv",
|
|
107
108
|
"WebSearch",
|
|
108
109
|
"WebSearchEnv",
|
|
110
|
+
"AgentAsToolLegacy",
|
|
109
111
|
"PythonFunctionBase",
|
|
110
112
|
"PythonFunctionResponse",
|
|
111
113
|
"DeletePythonFunctionResponse",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from seekrai.types.agents.tools.env_model_config import EnvConfig
|
|
2
2
|
from seekrai.types.agents.tools.schemas import (
|
|
3
|
+
AgentAsToolLegacy,
|
|
3
4
|
FileSearch,
|
|
4
5
|
FileSearchEnv,
|
|
5
6
|
RunPython,
|
|
@@ -23,4 +24,5 @@ __all__ = [
|
|
|
23
24
|
"RunPythonEnv",
|
|
24
25
|
"WebSearch",
|
|
25
26
|
"WebSearchEnv",
|
|
27
|
+
"AgentAsToolLegacy",
|
|
26
28
|
]
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from seekrai.types.agents.tools.schemas.agent_as_tool import AgentAsToolLegacy
|
|
1
2
|
from seekrai.types.agents.tools.schemas.file_search import FileSearch
|
|
2
3
|
from seekrai.types.agents.tools.schemas.file_search_env import FileSearchEnv
|
|
3
4
|
from seekrai.types.agents.tools.schemas.run_python import RunPython
|
|
@@ -13,4 +14,5 @@ __all__ = [
|
|
|
13
14
|
"RunPythonEnv",
|
|
14
15
|
"WebSearch",
|
|
15
16
|
"WebSearchEnv",
|
|
17
|
+
"AgentAsToolLegacy",
|
|
16
18
|
]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from typing import Literal
|
|
2
|
+
|
|
3
|
+
from seekrai.types.agents.tools import EnvConfig
|
|
4
|
+
from seekrai.types.agents.tools.tool import ToolBase, ToolType
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class AgentAsToolLegacy(ToolBase[Literal["agent_as_tool"], EnvConfig]):
|
|
8
|
+
name: Literal["agent_as_tool"] = ToolType.AGENT_AS_TOOL.value
|
|
9
|
+
description: str
|
|
10
|
+
agent_id: str
|
|
11
|
+
|
|
12
|
+
model_config = {
|
|
13
|
+
"json_schema_extra": {
|
|
14
|
+
"deprecated": True,
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -2,9 +2,13 @@ from typing import Annotated, Union
|
|
|
2
2
|
|
|
3
3
|
from pydantic import Field
|
|
4
4
|
|
|
5
|
+
from seekrai.types.agents.tools.schemas.agent_as_tool import AgentAsToolLegacy
|
|
5
6
|
from seekrai.types.agents.tools.schemas.file_search import FileSearch
|
|
6
7
|
from seekrai.types.agents.tools.schemas.run_python import RunPython
|
|
7
8
|
from seekrai.types.agents.tools.schemas.web_search import WebSearch
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
Tool = Annotated[
|
|
11
|
+
Tool = Annotated[
|
|
12
|
+
Union[FileSearch, WebSearch, RunPython, AgentAsToolLegacy],
|
|
13
|
+
Field(discriminator="name"),
|
|
14
|
+
]
|
seekrai/types/enums.py
CHANGED
seekrai/types/tools.py
CHANGED
|
@@ -62,6 +62,15 @@ class CreateRunPython(CreateTool):
|
|
|
62
62
|
config: RunPythonConfig
|
|
63
63
|
|
|
64
64
|
|
|
65
|
+
class AgentAsToolConfig(ToolConfig):
|
|
66
|
+
agent_id: str
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class CreateAgentAsTool(CreateTool):
|
|
70
|
+
type: Literal[ToolType.AGENT_AS_TOOL] = ToolType.AGENT_AS_TOOL
|
|
71
|
+
config: AgentAsToolConfig
|
|
72
|
+
|
|
73
|
+
|
|
65
74
|
class Tool(BaseModel):
|
|
66
75
|
type: ToolType
|
|
67
76
|
name: Annotated[str, AfterValidator(validate_length)]
|
|
@@ -88,13 +97,19 @@ class RunPythonTool(Tool):
|
|
|
88
97
|
config: RunPythonConfig
|
|
89
98
|
|
|
90
99
|
|
|
100
|
+
class AgentAsTool(Tool):
|
|
101
|
+
type: Literal[ToolType.AGENT_AS_TOOL] = ToolType.AGENT_AS_TOOL
|
|
102
|
+
config: AgentAsToolConfig
|
|
103
|
+
|
|
104
|
+
|
|
91
105
|
CreateToolRequest = Annotated[
|
|
92
|
-
Union[CreateFileSearch, CreateRunPython, CreateWebSearch],
|
|
106
|
+
Union[CreateFileSearch, CreateRunPython, CreateWebSearch, CreateAgentAsTool],
|
|
93
107
|
Field(discriminator="type"),
|
|
94
108
|
]
|
|
95
109
|
|
|
96
110
|
ToolResponse = Annotated[
|
|
97
|
-
Union[FileSearchTool, WebSearchTool, RunPythonTool],
|
|
111
|
+
Union[FileSearchTool, WebSearchTool, RunPythonTool, AgentAsTool],
|
|
112
|
+
Field(discriminator="type"),
|
|
98
113
|
]
|
|
99
114
|
|
|
100
115
|
|
|
@@ -110,6 +125,10 @@ class UpdateRunPython(CreateRunPython):
|
|
|
110
125
|
pass
|
|
111
126
|
|
|
112
127
|
|
|
128
|
+
class UpdateAgentAsTool(CreateAgentAsTool):
|
|
129
|
+
pass
|
|
130
|
+
|
|
131
|
+
|
|
113
132
|
UpdateToolRequest = Annotated[
|
|
114
133
|
Union[UpdateFileSearch, UpdateWebSearch, UpdateRunPython],
|
|
115
134
|
Field(discriminator="type"),
|
|
@@ -117,7 +136,7 @@ UpdateToolRequest = Annotated[
|
|
|
117
136
|
|
|
118
137
|
|
|
119
138
|
class GetToolsResponse(BaseModel):
|
|
120
|
-
"""Response schema for paginated tool list."""
|
|
139
|
+
"""Response schema for a paginated tool list."""
|
|
121
140
|
|
|
122
141
|
data: list[ToolResponse]
|
|
123
142
|
total: Optional[int] = None
|
|
@@ -30,17 +30,18 @@ seekrai/resources/resource_base.py,sha256=rFIHFeqKPiAEbMYcMiIGHIym7qxwmh-EGsWiZc
|
|
|
30
30
|
seekrai/resources/tools.py,sha256=NH47V0Ks6yXLr0yzSVegWGKJNF1PblUhkYThz0BBKO0,11259
|
|
31
31
|
seekrai/resources/vectordb.py,sha256=1uUsyCUJdVAVUnua9RJWqf-j0HDD74EPeERUBjqVvmg,15797
|
|
32
32
|
seekrai/seekrflow_response.py,sha256=5RFEQzamDy7sTSDkxSsZQThZ3biNmeCPeHWdrFId5Go,1320
|
|
33
|
-
seekrai/types/__init__.py,sha256
|
|
33
|
+
seekrai/types/__init__.py,sha256=c27Om5Yv8f-V-d9reA96ecPjc5ldeVnNLDjxrdi-VTY,6067
|
|
34
34
|
seekrai/types/abstract.py,sha256=TqWFQV_6bPblywfCH-r8FCkXWvPkc9KlJ4QVgyrnaMc,642
|
|
35
|
-
seekrai/types/agents/__init__.py,sha256=
|
|
35
|
+
seekrai/types/agents/__init__.py,sha256=Ukt-s8yz1sLNQuQUYxfi5_77Ni_oGqetjqBajW5sWx4,2404
|
|
36
36
|
seekrai/types/agents/agent.py,sha256=VIMF6gXhlLViVsCBGgPo54UdJqpMjb_ystNNx9n94FY,1543
|
|
37
37
|
seekrai/types/agents/observability.py,sha256=kOpBrNsrOzSbf-AsRBWAxRB9FqO0063CshUr-r2hHBE,963
|
|
38
38
|
seekrai/types/agents/python_functions.py,sha256=31Jm46gryHsgNsC7nlivuyY0TSko58y2YVxsu_7bEAg,653
|
|
39
39
|
seekrai/types/agents/runs.py,sha256=JgvasNM_eesGbwnqeAbRzPNvbzLAG1_N2IU7M7OHD1w,4933
|
|
40
40
|
seekrai/types/agents/threads.py,sha256=TinCMKv1bi5LzboDyCx1XI4Zzd8UzUZos4VOrTNhmEc,6835
|
|
41
|
-
seekrai/types/agents/tools/__init__.py,sha256=
|
|
41
|
+
seekrai/types/agents/tools/__init__.py,sha256=91FbBuKKMxloI-iebI7FYLcWIJT8dwz5tyAnteaXkpU,557
|
|
42
42
|
seekrai/types/agents/tools/env_model_config.py,sha256=9POx2DPwfSXgoaziJv7QvKeMrhMsYD1exnanSRK48vw,177
|
|
43
|
-
seekrai/types/agents/tools/schemas/__init__.py,sha256=
|
|
43
|
+
seekrai/types/agents/tools/schemas/__init__.py,sha256=D4m_2mTjQM_zWPcalKgoGWq6aKdrCqZRvc2d6FOtJQo,666
|
|
44
|
+
seekrai/types/agents/tools/schemas/agent_as_tool.py,sha256=ypNRKgwZDKzNyHnbLNbr7dcUIOwFYgHBujuOgPVob5Q,420
|
|
44
45
|
seekrai/types/agents/tools/schemas/file_search.py,sha256=0e9jL4B7-GSYGrkGBA4I6PHd2vP6vz8KfLSp2DIeg2A,459
|
|
45
46
|
seekrai/types/agents/tools/schemas/file_search_env.py,sha256=VGM3fkBjbp0wJVwgtgxKw_kEKP0qwvkGpJQZsvlOtcY,683
|
|
46
47
|
seekrai/types/agents/tools/schemas/run_python.py,sha256=Gq-LAXyXswW_IhHBfdEvw3WZuuI62R9HRfj5YoLp06c,451
|
|
@@ -48,14 +49,14 @@ seekrai/types/agents/tools/schemas/run_python_env.py,sha256=0GcyrKILbRRz-6CufG9i
|
|
|
48
49
|
seekrai/types/agents/tools/schemas/web_search.py,sha256=jAF9OMQbUODd5egzbct5CgFtMm-0Y62lvXFRbEONAlk,451
|
|
49
50
|
seekrai/types/agents/tools/schemas/web_search_env.py,sha256=R3fGXV43ZacbgoSy-M43rsTe5FFPU-t2VPMBnTVj7M8,283
|
|
50
51
|
seekrai/types/agents/tools/tool.py,sha256=XdbYzSn0Rr-m9s34Aa1NDQ-35Kpzk4rcaXY3dKrg-Ys,514
|
|
51
|
-
seekrai/types/agents/tools/tool_types.py,sha256=
|
|
52
|
+
seekrai/types/agents/tools/tool_types.py,sha256=5MtxL-DY2VUA0RHPO7T3BluRsoYCWZLXeHkEww5SVcA,469
|
|
52
53
|
seekrai/types/alignment.py,sha256=nWcc4kQLs40-T0_HC3MnGkLd-StwBvwCXQrjUVJ5dEI,2973
|
|
53
54
|
seekrai/types/chat_completions.py,sha256=-ganbaf5wDlNIj6zWGjcmkCwTIoCUthyVO9vuBcQiwk,3759
|
|
54
55
|
seekrai/types/common.py,sha256=YI1pE-i_lDLU2o6FjoINdIhPXsV9lUl2MeAg2aRtT-M,2062
|
|
55
56
|
seekrai/types/completions.py,sha256=lm9AFdZR3Xg5AHPkV-qETHikkwMJmkHrLGr5GG-YR-M,2171
|
|
56
57
|
seekrai/types/deployments.py,sha256=a0zew1DuB9vPQXcBT2R4Tdn_8z5qleh6V6i4T4xyYZo,1798
|
|
57
58
|
seekrai/types/embeddings.py,sha256=OANoLNOs0aceS8NppVvvcNYQbF7-pAOAmcr30pw64OU,749
|
|
58
|
-
seekrai/types/enums.py,sha256=
|
|
59
|
+
seekrai/types/enums.py,sha256=v6HDfpgKJ__fCouWYPBbfD6ZjsXCMrnNt9zTuALBsp0,669
|
|
59
60
|
seekrai/types/error.py,sha256=uTKISs9aRC4_6zwirtNkanxepN8KY-SqCq0kNbfZylQ,370
|
|
60
61
|
seekrai/types/explainability.py,sha256=Ih-8hCm5r22EMMtr83cDy8vePo7_Ik7UdUcXhsj5Zm0,835
|
|
61
62
|
seekrai/types/files.py,sha256=kOy4s8D4tlsenyWmiiEyAS0jDAdxMScBu5j1GwQCf3E,2808
|
|
@@ -64,7 +65,7 @@ seekrai/types/images.py,sha256=Fusj8OhVYFsT8kz636lRGGivLbPXo_ZNgakKwmzJi3U,914
|
|
|
64
65
|
seekrai/types/ingestion.py,sha256=uUdKOR4xqSfAXWQOR1UOltSlOnuyAwKVA1Q2a6Yslk8,919
|
|
65
66
|
seekrai/types/models.py,sha256=9Z0nvLdlAfpF8mNRW5-IqBdDHoE-3qQ5przmIDJgwLo,1345
|
|
66
67
|
seekrai/types/projects.py,sha256=JFgpZdovia8Orcnhp6QkIEAXzyPCfKT_bUiwjxUaHHQ,670
|
|
67
|
-
seekrai/types/tools.py,sha256=
|
|
68
|
+
seekrai/types/tools.py,sha256=VkpEFVyTEGk3lzBky6lh7sAQF9iWGZfFPRI417tavLI,3936
|
|
68
69
|
seekrai/types/vectordb.py,sha256=Fw3ZrEvWU5OHzXNIUXtD24JVG7pCULfudX_WDOazJnk,2454
|
|
69
70
|
seekrai/utils/__init__.py,sha256=dfbiYEc47EBVRkq6C4O9y6tTGuPuV3LbV3__v01Mbds,658
|
|
70
71
|
seekrai/utils/_log.py,sha256=Cayw5B394H2WGVTXPXS2AN8znQdxsgrLqADXgqmokvU,1649
|
|
@@ -72,8 +73,8 @@ seekrai/utils/api_helpers.py,sha256=0Y8BblNIr9h_R12zdmhkxgTlxgoRkbq84QNi4nNWGu8,
|
|
|
72
73
|
seekrai/utils/files.py,sha256=7ixn_hgV-6pEhYqLyOp-EN0o8c1CzUwJzX9n3PQ5oqo,7164
|
|
73
74
|
seekrai/utils/tools.py,sha256=jgJTL-dOIouDbEJLdQpQfpXhqaz_poQYS52adyUtBjo,1781
|
|
74
75
|
seekrai/version.py,sha256=q6iGQVFor8zXiPP5F-3vy9TndOxKv5JXbaNJ2kdOQws,125
|
|
75
|
-
seekrai-0.5.
|
|
76
|
-
seekrai-0.5.
|
|
77
|
-
seekrai-0.5.
|
|
78
|
-
seekrai-0.5.
|
|
79
|
-
seekrai-0.5.
|
|
76
|
+
seekrai-0.5.29.dist-info/METADATA,sha256=bHPgRE1YAJ86dCrS3VCEoE2rMt7lh63iy2tnZNiCAh0,4788
|
|
77
|
+
seekrai-0.5.29.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
|
|
78
|
+
seekrai-0.5.29.dist-info/entry_points.txt,sha256=N49yOEGi1sK7Xr13F_rkkcOxQ88suyiMoOmRhUHTZ_U,48
|
|
79
|
+
seekrai-0.5.29.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
80
|
+
seekrai-0.5.29.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|