agentrun-inner-test 0.0.56__py3-none-any.whl → 0.0.64__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.
- agentrun/__init__.py +34 -1
- agentrun/agent_runtime/__endpoint_async_template.py +40 -0
- agentrun/agent_runtime/endpoint.py +79 -0
- agentrun/memory_collection/__client_async_template.py +178 -0
- agentrun/memory_collection/__init__.py +37 -0
- agentrun/memory_collection/__memory_collection_async_template.py +457 -0
- agentrun/memory_collection/api/__init__.py +5 -0
- agentrun/memory_collection/api/control.py +610 -0
- agentrun/memory_collection/client.py +323 -0
- agentrun/memory_collection/memory_collection.py +844 -0
- agentrun/memory_collection/model.py +162 -0
- {agentrun_inner_test-0.0.56.dist-info → agentrun_inner_test-0.0.64.dist-info}/METADATA +4 -4
- {agentrun_inner_test-0.0.56.dist-info → agentrun_inner_test-0.0.64.dist-info}/RECORD +16 -8
- {agentrun_inner_test-0.0.56.dist-info → agentrun_inner_test-0.0.64.dist-info}/WHEEL +0 -0
- {agentrun_inner_test-0.0.56.dist-info → agentrun_inner_test-0.0.64.dist-info}/licenses/LICENSE +0 -0
- {agentrun_inner_test-0.0.56.dist-info → agentrun_inner_test-0.0.64.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"""MemoryCollection 模型定义 / MemoryCollection Model Definitions
|
|
2
|
+
|
|
3
|
+
定义记忆集合相关的数据模型和枚举。
|
|
4
|
+
Defines data models and enumerations related to memory collections.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import List, Optional
|
|
8
|
+
|
|
9
|
+
from agentrun.utils.config import Config
|
|
10
|
+
from agentrun.utils.model import BaseModel, PageableInput
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class EmbedderConfigConfig(BaseModel):
|
|
14
|
+
"""嵌入模型内部配置 / Embedder Inner Configuration"""
|
|
15
|
+
|
|
16
|
+
model: Optional[str] = None
|
|
17
|
+
"""模型名称"""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class EmbedderConfig(BaseModel):
|
|
21
|
+
"""嵌入模型配置 / Embedder Configuration"""
|
|
22
|
+
|
|
23
|
+
config: Optional[EmbedderConfigConfig] = None
|
|
24
|
+
"""配置"""
|
|
25
|
+
model_service_name: Optional[str] = None
|
|
26
|
+
"""模型服务名称"""
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class LLMConfigConfig(BaseModel):
|
|
30
|
+
"""LLM 内部配置 / LLM Inner Configuration"""
|
|
31
|
+
|
|
32
|
+
model: Optional[str] = None
|
|
33
|
+
"""模型名称"""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class LLMConfig(BaseModel):
|
|
37
|
+
"""LLM 配置 / LLM Configuration"""
|
|
38
|
+
|
|
39
|
+
config: Optional[LLMConfigConfig] = None
|
|
40
|
+
"""配置"""
|
|
41
|
+
model_service_name: Optional[str] = None
|
|
42
|
+
"""模型服务名称"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class NetworkConfiguration(BaseModel):
|
|
46
|
+
"""网络配置 / Network Configuration"""
|
|
47
|
+
|
|
48
|
+
vpc_id: Optional[str] = None
|
|
49
|
+
"""VPC ID"""
|
|
50
|
+
vswitch_ids: Optional[List[str]] = None
|
|
51
|
+
"""交换机 ID 列表"""
|
|
52
|
+
security_group_id: Optional[str] = None
|
|
53
|
+
"""安全组 ID"""
|
|
54
|
+
network_mode: Optional[str] = None
|
|
55
|
+
"""网络模式"""
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class VectorStoreConfigConfig(BaseModel):
|
|
59
|
+
"""向量存储内部配置 / Vector Store Inner Configuration"""
|
|
60
|
+
|
|
61
|
+
endpoint: Optional[str] = None
|
|
62
|
+
"""端点"""
|
|
63
|
+
instance_name: Optional[str] = None
|
|
64
|
+
"""实例名称"""
|
|
65
|
+
collection_name: Optional[str] = None
|
|
66
|
+
"""集合名称"""
|
|
67
|
+
vector_dimension: Optional[int] = None
|
|
68
|
+
"""向量维度"""
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class VectorStoreConfig(BaseModel):
|
|
72
|
+
"""向量存储配置 / Vector Store Configuration"""
|
|
73
|
+
|
|
74
|
+
provider: Optional[str] = None
|
|
75
|
+
"""提供商"""
|
|
76
|
+
config: Optional[VectorStoreConfigConfig] = None
|
|
77
|
+
"""配置"""
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
class MemoryCollectionMutableProps(BaseModel):
|
|
81
|
+
"""MemoryCollection 可变属性"""
|
|
82
|
+
|
|
83
|
+
description: Optional[str] = None
|
|
84
|
+
"""描述"""
|
|
85
|
+
embedder_config: Optional[EmbedderConfig] = None
|
|
86
|
+
"""嵌入模型配置"""
|
|
87
|
+
execution_role_arn: Optional[str] = None
|
|
88
|
+
"""执行角色 ARN"""
|
|
89
|
+
llm_config: Optional[LLMConfig] = None
|
|
90
|
+
"""LLM 配置"""
|
|
91
|
+
network_configuration: Optional[NetworkConfiguration] = None
|
|
92
|
+
"""网络配置"""
|
|
93
|
+
vector_store_config: Optional[VectorStoreConfig] = None
|
|
94
|
+
"""向量存储配置"""
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
class MemoryCollectionImmutableProps(BaseModel):
|
|
98
|
+
"""MemoryCollection 不可变属性"""
|
|
99
|
+
|
|
100
|
+
memory_collection_name: Optional[str] = None
|
|
101
|
+
"""Memory Collection 名称"""
|
|
102
|
+
type: Optional[str] = None
|
|
103
|
+
"""类型"""
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
class MemoryCollectionSystemProps(BaseModel):
|
|
107
|
+
"""MemoryCollection 系统属性"""
|
|
108
|
+
|
|
109
|
+
memory_collection_id: Optional[str] = None
|
|
110
|
+
"""Memory Collection ID"""
|
|
111
|
+
created_at: Optional[str] = None
|
|
112
|
+
"""创建时间"""
|
|
113
|
+
last_updated_at: Optional[str] = None
|
|
114
|
+
"""最后更新时间"""
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
class MemoryCollectionCreateInput(
|
|
118
|
+
MemoryCollectionImmutableProps, MemoryCollectionMutableProps
|
|
119
|
+
):
|
|
120
|
+
"""MemoryCollection 创建输入参数"""
|
|
121
|
+
|
|
122
|
+
pass
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
class MemoryCollectionUpdateInput(MemoryCollectionMutableProps):
|
|
126
|
+
"""MemoryCollection 更新输入参数"""
|
|
127
|
+
|
|
128
|
+
pass
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
class MemoryCollectionListInput(PageableInput):
|
|
132
|
+
"""MemoryCollection 列表查询输入参数"""
|
|
133
|
+
|
|
134
|
+
memory_collection_name: Optional[str] = None
|
|
135
|
+
"""Memory Collection 名称"""
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
class MemoryCollectionListOutput(BaseModel):
|
|
139
|
+
"""MemoryCollection 列表输出"""
|
|
140
|
+
|
|
141
|
+
memory_collection_id: Optional[str] = None
|
|
142
|
+
memory_collection_name: Optional[str] = None
|
|
143
|
+
description: Optional[str] = None
|
|
144
|
+
type: Optional[str] = None
|
|
145
|
+
created_at: Optional[str] = None
|
|
146
|
+
last_updated_at: Optional[str] = None
|
|
147
|
+
|
|
148
|
+
async def to_memory_collection_async(self, config: Optional[Config] = None):
|
|
149
|
+
"""转换为完整的 MemoryCollection 对象(异步)"""
|
|
150
|
+
from .client import MemoryCollectionClient
|
|
151
|
+
|
|
152
|
+
return await MemoryCollectionClient(config).get_async(
|
|
153
|
+
self.memory_collection_name or "", config=config
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
def to_memory_collection(self, config: Optional[Config] = None):
|
|
157
|
+
"""转换为完整的 MemoryCollection 对象"""
|
|
158
|
+
from .client import MemoryCollectionClient
|
|
159
|
+
|
|
160
|
+
return MemoryCollectionClient(config).get(
|
|
161
|
+
self.memory_collection_name or "", config=config
|
|
162
|
+
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentrun-inner-test
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.64
|
|
4
4
|
Summary: Alibaba Cloud Agent Run SDK
|
|
5
5
|
Requires-Python: >=3.10
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -13,8 +13,10 @@ Requires-Dist: typing-extensions>=4.15.0
|
|
|
13
13
|
Requires-Dist: litellm>=1.79.3
|
|
14
14
|
Requires-Dist: alibabacloud-devs20230714>=2.4.1
|
|
15
15
|
Requires-Dist: pydash>=8.0.5
|
|
16
|
-
Requires-Dist: alibabacloud-agentrun20250910>=5.0
|
|
16
|
+
Requires-Dist: alibabacloud-agentrun20250910>=5.2.0
|
|
17
17
|
Requires-Dist: alibabacloud_tea_openapi>=0.4.2
|
|
18
|
+
Requires-Dist: alibabacloud_bailian20231229>=2.6.2
|
|
19
|
+
Requires-Dist: agentrun-mem0ai>=0.0.6
|
|
18
20
|
Provides-Extra: server
|
|
19
21
|
Requires-Dist: fastapi>=0.104.0; extra == "server"
|
|
20
22
|
Requires-Dist: uvicorn>=0.24.0; extra == "server"
|
|
@@ -34,8 +36,6 @@ Provides-Extra: playwright
|
|
|
34
36
|
Requires-Dist: playwright>=1.40.0; extra == "playwright"
|
|
35
37
|
Provides-Extra: mcp
|
|
36
38
|
Requires-Dist: mcp>=1.21.2; python_version >= "3.10" and extra == "mcp"
|
|
37
|
-
Provides-Extra: knowledgebase
|
|
38
|
-
Requires-Dist: alibabacloud_bailian20231229>=2.6.2; extra == "knowledgebase"
|
|
39
39
|
Dynamic: license-file
|
|
40
40
|
|
|
41
41
|
# AgentRun Python SDK
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
agentrun/__init__.py,sha256=
|
|
1
|
+
agentrun/__init__.py,sha256=2pdBfTEiQQmCfcuYDIbFxDB2lzAv90zNeabHe3SC0mc,9656
|
|
2
2
|
agentrun/agent_runtime/__client_async_template.py,sha256=cy30p4V_26qS5hNXhWCQ4yNlhYie6verudhzakCs6w0,16597
|
|
3
|
-
agentrun/agent_runtime/__endpoint_async_template.py,sha256=
|
|
3
|
+
agentrun/agent_runtime/__endpoint_async_template.py,sha256=to47ZBItYOGEajffm1WCYUStXYCUl5zUJc0cyAJ5ioU,13628
|
|
4
4
|
agentrun/agent_runtime/__init__.py,sha256=l_qHvw3gGw9CszV2LG-G4MkmXsmVPOSzpbgZ86JIr1Y,1457
|
|
5
5
|
agentrun/agent_runtime/__runtime_async_template.py,sha256=wn7vLotF48poAJD7NvLFZNEDmBfxnjNwpMBQz3cIjAY,15226
|
|
6
6
|
agentrun/agent_runtime/client.py,sha256=zIeQK4W6HwRFLadADH2ZxJjAxcD0zNIJ8EPr8pN8D28,31021
|
|
7
|
-
agentrun/agent_runtime/endpoint.py,sha256=
|
|
7
|
+
agentrun/agent_runtime/endpoint.py,sha256=K_modzZvjIsQrKm_wwuTBlrUQsP6fiQP3vh4etF3KXs,25757
|
|
8
8
|
agentrun/agent_runtime/model.py,sha256=D_QP6KZZGNMzTV8t4qJKKUnuXW35MTOB0lTYd4PdvAM,11616
|
|
9
9
|
agentrun/agent_runtime/runtime.py,sha256=Hc-0g9AzeI_r8w1Vitau9N_t3o4ZeBl9SApcZUGhzRI,28472
|
|
10
10
|
agentrun/agent_runtime/api/__data_async_template.py,sha256=kY3puB6DV3Wvw7jH-M4Q6jb6gDDzKEHaevtlHdpuRuc,1720
|
|
@@ -73,6 +73,14 @@ agentrun/knowledgebase/api/__data_async_template.py,sha256=Tj33wIiUo8wYbtIwbmiK-
|
|
|
73
73
|
agentrun/knowledgebase/api/__init__.py,sha256=Sm-EOuU9O3PJMZcKYPURKv_0dWRL21-HKWRclhSRPQU,381
|
|
74
74
|
agentrun/knowledgebase/api/control.py,sha256=hNhYhb2X4fo11RwbL3XuYmtbdw69I_wD3a4PWF6dUC8,18758
|
|
75
75
|
agentrun/knowledgebase/api/data.py,sha256=s6-XA2zGZX_MNnsWtqq5lRMHldTlDVER7C3tvbdM2Ys,22660
|
|
76
|
+
agentrun/memory_collection/__client_async_template.py,sha256=gKM8Qe1RFV9KlEreYJ8apasLDcYNxi9MkXOSU3nJFmw,5563
|
|
77
|
+
agentrun/memory_collection/__init__.py,sha256=3lWU9YAQSuN_QSYKP_PfuBWUhr5Z3vR0fhHFcDsRfRs,929
|
|
78
|
+
agentrun/memory_collection/__memory_collection_async_template.py,sha256=G3eg44XNs_P_wR3YwK7haBjZj7xWecuFRX5qEcx-49A,15009
|
|
79
|
+
agentrun/memory_collection/client.py,sha256=jBbpzttypCYHBPyfE4IYRr8678qc1lZdx4ZepxNUmSY,10101
|
|
80
|
+
agentrun/memory_collection/memory_collection.py,sha256=imcmA9NjOVSvD3lbMOhXQvzO1keDc8ww0Gg4mNudoiQ,27712
|
|
81
|
+
agentrun/memory_collection/model.py,sha256=UBIa01IqQoif4znavS6or1igZne2KkLpYg_hqf69W3I,4508
|
|
82
|
+
agentrun/memory_collection/api/__init__.py,sha256=bGrtKoU2iTDMwP5vwlXSrT1nWRJiOpIJbbKaKQEjDaU,155
|
|
83
|
+
agentrun/memory_collection/api/control.py,sha256=OLnoo4cklgyg-W4MWNiU2YkNq2dcLSq75ssxryeft20,19376
|
|
76
84
|
agentrun/model/__client_async_template.py,sha256=iwd_ayUHM6OMo_e_7v_UDA5hh2kFv0vFlEwIBoYHLz0,10655
|
|
77
85
|
agentrun/model/__init__.py,sha256=3xU_DaEwV_Y87mze02OxiSK59iTLNiR1Q1tBRQsADtQ,1300
|
|
78
86
|
agentrun/model/__model_proxy_async_template.py,sha256=xPSdAWY-oJl7XSCFZWU3nEJh6P7u0d98DLVIU35j6PI,7271
|
|
@@ -139,8 +147,8 @@ agentrun/utils/helper.py,sha256=KCNZ6zuewMW05DufJwNk2rWnQJhL4aN2t3X2L4IQiR8,3362
|
|
|
139
147
|
agentrun/utils/log.py,sha256=rhkdWIMTcDgTFyliCi2YUBAZfdRyE2hERfGAmXEIP3A,2189
|
|
140
148
|
agentrun/utils/model.py,sha256=aps3tXSNNcnfR6CEABRVtRJP4ACUihLtZeyTwKHXTSg,4886
|
|
141
149
|
agentrun/utils/resource.py,sha256=LFf-sd61iv0yPWF0bRuTqpeR8WLg75MMGQ5CvJ8Ju30,8298
|
|
142
|
-
agentrun_inner_test-0.0.
|
|
143
|
-
agentrun_inner_test-0.0.
|
|
144
|
-
agentrun_inner_test-0.0.
|
|
145
|
-
agentrun_inner_test-0.0.
|
|
146
|
-
agentrun_inner_test-0.0.
|
|
150
|
+
agentrun_inner_test-0.0.64.dist-info/licenses/LICENSE,sha256=JrYkU96zhHt0nj9fbah_g3UYZYaTy-BOU32JWii6XiY,11345
|
|
151
|
+
agentrun_inner_test-0.0.64.dist-info/METADATA,sha256=C_ukIDuVNNyQqsAyoFbrrEGrhl2YnDxQon1IdPa5jSY,10849
|
|
152
|
+
agentrun_inner_test-0.0.64.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
153
|
+
agentrun_inner_test-0.0.64.dist-info/top_level.txt,sha256=07SB6FkBHkzvOSW9k5VIVfarMmtW0WEd-YHP3-iL5Qc,9
|
|
154
|
+
agentrun_inner_test-0.0.64.dist-info/RECORD,,
|
|
File without changes
|
{agentrun_inner_test-0.0.56.dist-info → agentrun_inner_test-0.0.64.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|