Skip to content

Commit 1e424f4

Browse files
committed
feat: Update the version to 0.2.0 and adjust the default configuration
- Upgrade the version number from 0.1.15 to 0.2.0 - Modify the default entry_point in CommonConfig to agent.py - Change the default launch_type from local to cloud - Add the min_instance field to VeAgentkitRunnerConfig - Adjust the timeout for runtime creation and updates to 600 seconds
1 parent 2aadc0a commit 1e424f4

File tree

5 files changed

+20
-14
lines changed

5 files changed

+20
-14
lines changed

agentkit/toolkit/config/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class CommonConfig(AutoSerializableMixin):
4242
},
4343
)
4444
entry_point: str = field(
45-
default="",
45+
default="agent.py",
4646
metadata={
4747
"description": "Agent application entry file (path allowed), e.g. simple_agent.py or main.go or build.sh",
4848
"icon": "📝",
@@ -110,7 +110,7 @@ class CommonConfig(AutoSerializableMixin):
110110
},
111111
)
112112
launch_type: str = field(
113-
default="local",
113+
default="cloud",
114114
metadata={
115115
"description": "Deployment and runtime mode, defaults to local (local build and deploy), optional hybrid (local build, cloud deploy)",
116116
"icon": "🚀",

agentkit/toolkit/runners/ve_agentkit.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ class VeAgentkitRunnerConfig(AutoSerializableMixin):
107107
# Container image configuration
108108
image_url: str = field(default="", metadata={"description": "Container image URL"})
109109

110+
# Minimum instance count
111+
min_instance: int = field(
112+
default=1, metadata={"description": "Minimum number of Runtime instances"}
113+
)
114+
110115

111116
# VeAgentkitDeployResult has been replaced by unified DeployResult
112117
# Configuration class is retained for backward compatibility
@@ -618,6 +623,7 @@ def _create_new_runtime(self, config: VeAgentkitRunnerConfig) -> DeployResult:
618623
authorizer_configuration=authorizer_config,
619624
client_token=generate_client_token(),
620625
apmplus_enable=True,
626+
min_instance=config.min_instance,
621627
)
622628

623629
# Create Runtime
@@ -635,7 +641,7 @@ def _create_new_runtime(self, config: VeAgentkitRunnerConfig) -> DeployResult:
635641
runtime_id=config.runtime_id,
636642
target_status=RUNTIME_STATUS_READY,
637643
task_description="Waiting for Runtime to be ready...",
638-
timeout=None, # No timeout for creation
644+
timeout=600,
639645
error_message="Initialization failed",
640646
)
641647

@@ -1036,7 +1042,7 @@ def _update_existing_runtime(self, config: VeAgentkitRunnerConfig) -> DeployResu
10361042
runtime_id=config.runtime_id,
10371043
target_statuses=[RUNTIME_STATUS_UNRELEASED, RUNTIME_STATUS_READY],
10381044
task_description="Waiting for Runtime update to complete...",
1039-
timeout=180,
1045+
timeout=600,
10401046
error_message="Update failed",
10411047
)
10421048

agentkit/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
VERSION = "0.1.15"
15+
VERSION = "0.2.0"

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "agentkit-sdk-python"
3-
version = "0.1.15"
3+
version = "0.2.0"
44
description = "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."
55
readme = "README.md"
66
requires-python = ">=3.10"
@@ -26,10 +26,10 @@ dependencies = [
2626
"a2a-sdk>=0.3.7",
2727
"fastapi>=0.117.1",
2828
"fastmcp>=2.12.3",
29-
"opentelemetry-api>=1.32.1",
30-
"opentelemetry-exporter-otlp-proto-common>=1.32.1",
31-
"opentelemetry-exporter-otlp-proto-grpc>=1.32.1",
32-
"opentelemetry-sdk>=1.32.1",
29+
"opentelemetry-api>=1.32.1, <=1.37.0",
30+
"opentelemetry-exporter-otlp-proto-common>=1.32.1, <=1.37.0",
31+
"opentelemetry-exporter-otlp-proto-grpc>=1.32.1, <=1.37.0",
32+
"opentelemetry-sdk>=1.32.1, <=1.37.0",
3333
"pydantic>=2.11.9",
3434
"requests>=2.32.5",
3535
"uvicorn>=0.37.0",

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
a2a-sdk>=0.3.7
33
fastapi>=0.117.1
44
fastmcp>=2.12.3
5-
opentelemetry-api>=1.32.1
6-
opentelemetry-exporter-otlp-proto-common>=1.32.1
7-
opentelemetry-exporter-otlp-proto-grpc>=1.32.1
8-
opentelemetry-sdk>=1.32.1
5+
opentelemetry-api>=1.32.1, <=1.37.0
6+
opentelemetry-exporter-otlp-proto-common>=1.32.1, <=1.37.0
7+
opentelemetry-exporter-otlp-proto-grpc>=1.32.1, <=1.37.0
8+
opentelemetry-sdk>=1.32.1, <=1.37.0
99
pydantic>=2.11.9
1010
requests>=2.32.5
1111
uvicorn>=0.37.0

0 commit comments

Comments
 (0)