Skip to content

Commit fdba4ff

Browse files
committed
feat: upgrade ten runtime to 0.8
1 parent 2e5dc2d commit fdba4ff

File tree

8 files changed

+17
-9
lines changed

8 files changed

+17
-9
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
33
{
44
"name": "dev",
5-
"image": "ghcr.io/ten-framework/ten_agent_build:0.2.3",
5+
"image": "ghcr.io/ten-framework/ten_agent_build:0.4.10",
66
"customizations": {
77
"vscode": {
88
"extensions": [

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
ci:
2525
runs-on: ubuntu-latest
2626
container:
27-
image: ghcr.io/ten-framework/ten_agent_build:0.2.3
27+
image: ghcr.io/ten-framework/ten_agent_build:0.4.10
2828
steps:
2929
- uses: actions/checkout@v4
3030
with:

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
*.pyc
22
.ten
3+
__pycache__
4+
.pytest_cache
5+
.coverage
6+
tmp

extension.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async def on_start(self, ten_env: AsyncTenEnv) -> None:
2424
await super().on_start(ten_env)
2525

2626
# initialize configuration
27-
self.config = DefaultAsyncLLMToolConfig.create(ten_env=ten_env)
27+
self.config = await DefaultAsyncLLMToolConfig.create_async(ten_env=ten_env)
2828
ten_env.log_info(f"config: {self.config}")
2929

3030
"""Implement this method to construct and start your resources."""

extension.py.tent

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class {{class_name_prefix}}Extension(AsyncLLMToolBaseExtension):
2424
await super().on_start(ten_env)
2525

2626
# initialize configuration
27-
self.config = {{class_name_prefix}}Config.create(ten_env=ten_env)
27+
self.config = await {{class_name_prefix}}Config.create_async(ten_env=ten_env)
2828
ten_env.log_info(f"config: {self.config}")
2929

3030
"""Implement this method to construct and start your resources."""

manifest.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"type": "extension",
33
"name": "default_async_llm_tool_extension_python",
4-
"version": "0.1.1",
4+
"version": "0.1.0",
55
"dependencies": [
66
{
77
"type": "system",
88
"name": "ten_ai_base",
9-
"version": "0.1"
9+
"version": "0.2"
1010
}
1111
],
1212
"package": {
@@ -16,7 +16,10 @@
1616
"requirements.txt",
1717
"**.tent",
1818
"**.py",
19-
"README.md"
19+
"README.md",
20+
"tests/**.py",
21+
"tests/**.tent",
22+
"tests/bin/start"
2023
]
2124
},
2225
"api": {

manifest.json.tent

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
{
77
"type": "system",
88
"name": "ten_ai_base",
9-
"version": "0.1"
9+
"version": "0.2"
1010
}
1111
],
1212
"package": {
1313
"include": [
1414
"manifest.json",
1515
"property.json",
1616
"requirements.txt",
17-
"**.tent",
1817
"**.py",
1918
"README.md"
2019
]

requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pydantic>=2
2+
typing-extensions

0 commit comments

Comments
 (0)