agentkit-sdk-python 0.5.4__py3-none-any.whl → 0.5.5__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.
- agentkit/toolkit/cli/cli_config.py +1 -1
- agentkit/toolkit/cli/interactive_config.py +23 -5
- agentkit/version.py +1 -1
- {agentkit_sdk_python-0.5.4.dist-info → agentkit_sdk_python-0.5.5.dist-info}/METADATA +1 -1
- {agentkit_sdk_python-0.5.4.dist-info → agentkit_sdk_python-0.5.5.dist-info}/RECORD +9 -9
- {agentkit_sdk_python-0.5.4.dist-info → agentkit_sdk_python-0.5.5.dist-info}/WHEEL +0 -0
- {agentkit_sdk_python-0.5.4.dist-info → agentkit_sdk_python-0.5.5.dist-info}/entry_points.txt +0 -0
- {agentkit_sdk_python-0.5.4.dist-info → agentkit_sdk_python-0.5.5.dist-info}/licenses/LICENSE +0 -0
- {agentkit_sdk_python-0.5.4.dist-info → agentkit_sdk_python-0.5.5.dist-info}/top_level.txt +0 -0
|
@@ -372,7 +372,7 @@ def _interactive_config(config_file: Optional[str] = None):
|
|
|
372
372
|
)
|
|
373
373
|
|
|
374
374
|
common_config = create_common_config_interactively(
|
|
375
|
-
config.
|
|
375
|
+
(config.get_raw_data() or {}).get("common", {})
|
|
376
376
|
)
|
|
377
377
|
config.update_common_config(common_config)
|
|
378
378
|
|
|
@@ -178,6 +178,7 @@ class AutoPromptGenerator:
|
|
|
178
178
|
dataclass_type: type,
|
|
179
179
|
existing_config: Optional[Dict[str, Any]] = None,
|
|
180
180
|
context: Optional[Dict[str, Any]] = None,
|
|
181
|
+
carry_over_config: Optional[Dict[str, Any]] = None,
|
|
181
182
|
) -> Dict[str, Any]:
|
|
182
183
|
self.current_dataclass_type = dataclass_type
|
|
183
184
|
if not is_dataclass(dataclass_type):
|
|
@@ -185,6 +186,12 @@ class AutoPromptGenerator:
|
|
|
185
186
|
|
|
186
187
|
config = {}
|
|
187
188
|
existing_config = existing_config or {}
|
|
189
|
+
if carry_over_config is not None and not isinstance(carry_over_config, dict):
|
|
190
|
+
raise TypeError(
|
|
191
|
+
"carry_over_config must be a dict when provided; "
|
|
192
|
+
f"got {type(carry_over_config).__name__}"
|
|
193
|
+
)
|
|
194
|
+
carry_over = existing_config if carry_over_config is None else carry_over_config
|
|
188
195
|
|
|
189
196
|
# Get dataclass metadata
|
|
190
197
|
# Try to get from class attributes; if not found, create instance to get field values
|
|
@@ -267,8 +274,8 @@ class AutoPromptGenerator:
|
|
|
267
274
|
if field.metadata.get("hidden", False) or field.metadata.get(
|
|
268
275
|
"system", False
|
|
269
276
|
):
|
|
270
|
-
if field_name in
|
|
271
|
-
config[field_name] =
|
|
277
|
+
if isinstance(carry_over, dict) and field_name in carry_over:
|
|
278
|
+
config[field_name] = carry_over[field_name]
|
|
272
279
|
|
|
273
280
|
# Filter out MISSING values
|
|
274
281
|
filtered_config = {}
|
|
@@ -1227,8 +1234,14 @@ def generate_config_from_dataclass(
|
|
|
1227
1234
|
dataclass_type: type,
|
|
1228
1235
|
existing_config: Optional[Dict[str, Any]] = None,
|
|
1229
1236
|
context: Optional[Dict[str, Any]] = None,
|
|
1237
|
+
carry_over_config: Optional[Dict[str, Any]] = None,
|
|
1230
1238
|
) -> Dict[str, Any]:
|
|
1231
|
-
return auto_prompt.generate_config(
|
|
1239
|
+
return auto_prompt.generate_config(
|
|
1240
|
+
dataclass_type,
|
|
1241
|
+
existing_config,
|
|
1242
|
+
context=context,
|
|
1243
|
+
carry_over_config=carry_over_config,
|
|
1244
|
+
)
|
|
1232
1245
|
|
|
1233
1246
|
|
|
1234
1247
|
def create_common_config_interactively(
|
|
@@ -1250,6 +1263,11 @@ def create_common_config_interactively(
|
|
|
1250
1263
|
"""
|
|
1251
1264
|
from agentkit.toolkit.config import CommonConfig
|
|
1252
1265
|
|
|
1253
|
-
|
|
1254
|
-
|
|
1266
|
+
raw_existing_config = existing_config or {}
|
|
1267
|
+
existing = CommonConfig.from_dict(raw_existing_config)
|
|
1268
|
+
config_dict = auto_prompt.generate_config(
|
|
1269
|
+
CommonConfig,
|
|
1270
|
+
existing.to_dict(),
|
|
1271
|
+
carry_over_config=raw_existing_config,
|
|
1272
|
+
)
|
|
1255
1273
|
return CommonConfig.from_dict(config_dict)
|
agentkit/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentkit-sdk-python
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.5
|
|
4
4
|
Summary: Python SDK for transforming any AI agent into a production-ready application. Framework-agnostic primitives for runtime, memory, authentication, and tools with volcengine-managed infrastructure.
|
|
5
5
|
Author-email: Xiangrui Cheng <innsdcc@gmail.com>, Yumeng Bao <baoyumeng.123@gmail.com>, Yaozheng Fang <fangyozheng@gmail.com>, Guodong Li <cu.eric.lee@gmail.com>
|
|
6
6
|
License: Apache License
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
agentkit/__init__.py,sha256=l27ZMDslc3VhmmnPZJyrqVvTDoZ0LqhCtM5hw0caHcU,1021
|
|
2
|
-
agentkit/version.py,sha256=
|
|
2
|
+
agentkit/version.py,sha256=yn4ZXuJcD63943xoF8gf1oqiIcBjneaSLVMGd2l_FSM,653
|
|
3
3
|
agentkit/apps/__init__.py,sha256=-oXTjxV3gejpJ8pffTUcUAXw0LfxKCYZJk-_hIJhtLM,1921
|
|
4
4
|
agentkit/apps/base_app.py,sha256=3hZZExL1wyTGWveJEZZoqXN086MzmkVS_WU1vyulIWg,754
|
|
5
5
|
agentkit/apps/utils.py,sha256=IzimIDmT6FS6PV9MLimPh46mq5zT-EjVmnYPxBdyEq0,1934
|
|
@@ -63,7 +63,7 @@ agentkit/toolkit/cli/__init__.py,sha256=pkSabKw7_ai4NOo56pXKL40EcaxIDh6HYxPXOY7q
|
|
|
63
63
|
agentkit/toolkit/cli/__main__.py,sha256=arwJ1gHkaaoQAXb0ezo_FeyxiMqVy0FXujB2WOX_ohU,775
|
|
64
64
|
agentkit/toolkit/cli/cli.py,sha256=cdv1YWArDH4PcoCc9lbPZgcj3_C70ZI6uyOSntUvIA8,3767
|
|
65
65
|
agentkit/toolkit/cli/cli_build.py,sha256=gtRBPJfm6Z4y37ISC_CiGwEkMhD4fD7IQi1H6Lzc2Yo,2984
|
|
66
|
-
agentkit/toolkit/cli/cli_config.py,sha256=
|
|
66
|
+
agentkit/toolkit/cli/cli_config.py,sha256=cb-QGXNvm8kQiaii4vjfCwt6Y9oukiZFSgHp1Y8Ovuk,29096
|
|
67
67
|
agentkit/toolkit/cli/cli_deploy.py,sha256=i34yIJekbn3mqlm2eV_wHL4sAPKVWPRQn_dYP9XtIgs,2431
|
|
68
68
|
agentkit/toolkit/cli/cli_destroy.py,sha256=QpH7cctsaIFd2io6hhEeKnCjxK7DbE7AnFsecWL5BxY,1797
|
|
69
69
|
agentkit/toolkit/cli/cli_init.py,sha256=5TvqFX2Xc-7WJqSS9ZK6ewZnLzg5ysLXQnOfwRs-6fk,16282
|
|
@@ -78,7 +78,7 @@ agentkit/toolkit/cli/cli_status.py,sha256=HP3TDCtqbD4NHPFAOq5LI8nuVLheCk-zo9hrm9
|
|
|
78
78
|
agentkit/toolkit/cli/cli_tools.py,sha256=LEDU7Oqx2SF96RjpgCH_i41uc6dw6HDh5Jd0RooQO6I,40888
|
|
79
79
|
agentkit/toolkit/cli/cli_version.py,sha256=vGZTplakjF4ZoHWGXsxWj3nC29sK4qJ5iHfYtuI0M2A,3080
|
|
80
80
|
agentkit/toolkit/cli/console_reporter.py,sha256=ta9GFUDkPEFfGeANDsza5bZdVXidqhHIfsu_gTyXzDw,6926
|
|
81
|
-
agentkit/toolkit/cli/interactive_config.py,sha256=
|
|
81
|
+
agentkit/toolkit/cli/interactive_config.py,sha256=y5g5aNMJuX2tHUuu2pvacOssx3O3oqs0u_g0ZinyP1c,46133
|
|
82
82
|
agentkit/toolkit/cli/utils.py,sha256=B24ZSUPe8Q6xhijTGEe5xS5kYOSGHh0pEzrcYbo-fj8,8626
|
|
83
83
|
agentkit/toolkit/config/__init__.py,sha256=Kkr_DGOY3kjbHeWSMjRaVr76JdtRwrDY2L5k4DaM1_s,2435
|
|
84
84
|
agentkit/toolkit/config/choice_resolvers.py,sha256=9OxVevL9gLTNqVpMvsDP_rC8ZFF6SPbhLJXrqXdf9xM,5958
|
|
@@ -181,9 +181,9 @@ agentkit/utils/misc.py,sha256=FXMlcupj3KzxfJvMYFp0uTQk3FRMx8FiEXkYiy-UQ8w,3437
|
|
|
181
181
|
agentkit/utils/request.py,sha256=IVoat3EavR9rQ_fXi0eA2rZPCJ9lVZAXXn7uIIX6bY4,1614
|
|
182
182
|
agentkit/utils/template_utils.py,sha256=Qjg9V6dEpjAd_yYezIIPwuDsDeeMmp6XTMn5ZECifNc,6336
|
|
183
183
|
agentkit/utils/ve_sign.py,sha256=nrYiS2bYncvWKQVpVMzwYwPDfkA0OJS7LO9l_wfW0xc,9310
|
|
184
|
-
agentkit_sdk_python-0.5.
|
|
185
|
-
agentkit_sdk_python-0.5.
|
|
186
|
-
agentkit_sdk_python-0.5.
|
|
187
|
-
agentkit_sdk_python-0.5.
|
|
188
|
-
agentkit_sdk_python-0.5.
|
|
189
|
-
agentkit_sdk_python-0.5.
|
|
184
|
+
agentkit_sdk_python-0.5.5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
185
|
+
agentkit_sdk_python-0.5.5.dist-info/METADATA,sha256=fBhv7txO9PCpua3mfQN42siywaxlR_fVJUjduzeJh8A,19394
|
|
186
|
+
agentkit_sdk_python-0.5.5.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
|
|
187
|
+
agentkit_sdk_python-0.5.5.dist-info/entry_points.txt,sha256=fhzZUsvsLXeB4mPaa0SBQiTBqFT404uDAKPaePAOUAE,58
|
|
188
|
+
agentkit_sdk_python-0.5.5.dist-info/top_level.txt,sha256=ipy8JF-QQ-V0C1oRFLxsyaW8zwrasfJ-zjAh9vgOc7U,9
|
|
189
|
+
agentkit_sdk_python-0.5.5.dist-info/RECORD,,
|
|
File without changes
|
{agentkit_sdk_python-0.5.4.dist-info → agentkit_sdk_python-0.5.5.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{agentkit_sdk_python-0.5.4.dist-info → agentkit_sdk_python-0.5.5.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|