Skip to content

Commit 851ec62

Browse files
authored
version: 发布1.1.1版本 (#44)
1 parent 3676b58 commit 851ec62

6 files changed

Lines changed: 24 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## [1.1.1](https://github.com/trpc-group/trpc-agent-python/releases/tag/v1.1.1) (2026-04-20)
4+
5+
### Features
6+
7+
* Storage: Added the `usage_metadata` field to SQL storage and introduced automatic migration for missing columns.
8+
* Skill: Added cross-session skill state persistence so loaded skills can be reused across sessions, reducing repeated skill loading and unnecessary retry turns.
9+
* Skill: Added skill install/uninstall awareness so the model can detect skill lifecycle changes and avoid missing-skill lookups or calls to uninstalled skills.
10+
* Session: Added `usage_metadata` support in SQL session storage for persisting and reading token usage statistics.
11+
12+
### Bug Fixes
13+
14+
* Skill: Reduced hallucinated skill command generation when users intend to run commands, lowering invalid command attempts and retry loops.
15+
16+
317
## [1.1.0](https://github.com/trpc-group/trpc-agent-python/releases/tag/v1.1.0) (2026-04-07)
418

519
### Features

examples/agui_with_cancel/_agui_runner.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@
1717
from trpc_agent_sdk.server.ag_ui import AgUiAgent
1818
from trpc_agent_sdk.server.ag_ui import AgUiManager
1919
from trpc_agent_sdk.server.ag_ui import AgUiService
20+
from trpc_agent_sdk.version import __version__
2021

2122

2223
class HealthResponse(BaseModel):
2324
"""Response body for GET /health."""
2425

2526
status: str = "ok"
2627
app_name: str
27-
version: str = "1.0.0"
28+
version: str = __version__
2829

2930

3031
class AguiRunner:
@@ -65,7 +66,7 @@ def _create_app(self) -> FastAPI:
6566
app = FastAPI(
6667
title="TRPC AG-UI Server (Cancel Demo)",
6768
description="HTTP API for TRPC AG-UI Server with Cancel support",
68-
version="1.0.0",
69+
version=__version__,
6970
lifespan=self._lifespan,
7071
)
7172
return app

examples/fastapi_server/_app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
from trpc_agent_sdk.log import logger
4848
from trpc_agent_sdk.types import Content
4949
from trpc_agent_sdk.types import Part
50+
from trpc_agent_sdk.version import __version__
5051

5152

5253
def create_app(manager: RunnerManager) -> FastAPI:
@@ -71,7 +72,7 @@ async def _lifespan(app: FastAPI): # noqa: ARG001
7172
app = FastAPI(
7273
title="TRPC Agent Server",
7374
description="HTTP API for TRPC Agent",
74-
version="1.0.0",
75+
version=__version__,
7576
lifespan=_lifespan,
7677
)
7778

examples/fastapi_server/_schemas.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
from pydantic import BaseModel
1313

14+
from trpc_agent_sdk.version import __version__
15+
1416

1517
class ChatRequest(BaseModel):
1618
"""Body for POST /v1/chat and POST /v1/chat/stream."""
@@ -58,4 +60,4 @@ class HealthResponse(BaseModel):
5860

5961
status: str = "ok"
6062
app_name: str
61-
version: str = "1.0.0"
63+
version: str = __version__

tests/test_version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66

77
"""Test the version module."""
88

9-
import pytest
109
from trpc_agent_sdk.version import __version__
1110

1211
def test_version():
1312
"""Test the version module."""
14-
assert __version__ == '1.0.0'
13+
assert __version__ == '1.1.1'

trpc_agent_sdk/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
This module defines the version information for TRPC Agent
1010
"""
1111

12-
__version__ = '1.0.0'
12+
__version__ = '1.1.1'

0 commit comments

Comments
 (0)