diff --git a/CHANGELOG.md b/CHANGELOG.md index f23bf58..a593d4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [1.1.1](https://github.com/trpc-group/trpc-agent-python/releases/tag/v1.1.1) (2026-04-20) + +### Features + +* Storage: Added the `usage_metadata` field to SQL storage and introduced automatic migration for missing columns. +* Skill: Added cross-session skill state persistence so loaded skills can be reused across sessions, reducing repeated skill loading and unnecessary retry turns. +* Skill: Added skill install/uninstall awareness so the model can detect skill lifecycle changes and avoid missing-skill lookups or calls to uninstalled skills. +* Session: Added `usage_metadata` support in SQL session storage for persisting and reading token usage statistics. + +### Bug Fixes + +* Skill: Reduced hallucinated skill command generation when users intend to run commands, lowering invalid command attempts and retry loops. + + ## [1.1.0](https://github.com/trpc-group/trpc-agent-python/releases/tag/v1.1.0) (2026-04-07) ### Features diff --git a/examples/agui_with_cancel/_agui_runner.py b/examples/agui_with_cancel/_agui_runner.py index b6d7ae6..a54e982 100644 --- a/examples/agui_with_cancel/_agui_runner.py +++ b/examples/agui_with_cancel/_agui_runner.py @@ -17,6 +17,7 @@ from trpc_agent_sdk.server.ag_ui import AgUiAgent from trpc_agent_sdk.server.ag_ui import AgUiManager from trpc_agent_sdk.server.ag_ui import AgUiService +from trpc_agent_sdk.version import __version__ class HealthResponse(BaseModel): @@ -24,7 +25,7 @@ class HealthResponse(BaseModel): status: str = "ok" app_name: str - version: str = "1.0.0" + version: str = __version__ class AguiRunner: @@ -65,7 +66,7 @@ def _create_app(self) -> FastAPI: app = FastAPI( title="TRPC AG-UI Server (Cancel Demo)", description="HTTP API for TRPC AG-UI Server with Cancel support", - version="1.0.0", + version=__version__, lifespan=self._lifespan, ) return app diff --git a/examples/fastapi_server/_app.py b/examples/fastapi_server/_app.py index 07903e7..0b8d672 100644 --- a/examples/fastapi_server/_app.py +++ b/examples/fastapi_server/_app.py @@ -47,6 +47,7 @@ from trpc_agent_sdk.log import logger from trpc_agent_sdk.types import Content from trpc_agent_sdk.types import Part +from trpc_agent_sdk.version import __version__ def create_app(manager: RunnerManager) -> FastAPI: @@ -71,7 +72,7 @@ async def _lifespan(app: FastAPI): # noqa: ARG001 app = FastAPI( title="TRPC Agent Server", description="HTTP API for TRPC Agent", - version="1.0.0", + version=__version__, lifespan=_lifespan, ) diff --git a/examples/fastapi_server/_schemas.py b/examples/fastapi_server/_schemas.py index d66a90d..9df742f 100644 --- a/examples/fastapi_server/_schemas.py +++ b/examples/fastapi_server/_schemas.py @@ -11,6 +11,8 @@ from pydantic import BaseModel +from trpc_agent_sdk.version import __version__ + class ChatRequest(BaseModel): """Body for POST /v1/chat and POST /v1/chat/stream.""" @@ -58,4 +60,4 @@ class HealthResponse(BaseModel): status: str = "ok" app_name: str - version: str = "1.0.0" + version: str = __version__ diff --git a/tests/test_version.py b/tests/test_version.py index 971663b..f05b6e1 100644 --- a/tests/test_version.py +++ b/tests/test_version.py @@ -6,9 +6,8 @@ """Test the version module.""" -import pytest from trpc_agent_sdk.version import __version__ def test_version(): """Test the version module.""" - assert __version__ == '1.0.0' + assert __version__ == '1.1.1' diff --git a/trpc_agent_sdk/version.py b/trpc_agent_sdk/version.py index 47749e0..8ed1d4b 100644 --- a/trpc_agent_sdk/version.py +++ b/trpc_agent_sdk/version.py @@ -9,4 +9,4 @@ This module defines the version information for TRPC Agent """ -__version__ = '1.0.0' +__version__ = '1.1.1'