Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 3 additions & 2 deletions examples/agui_with_cancel/_agui_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@
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):
"""Response body for GET /health."""

status: str = "ok"
app_name: str
version: str = "1.0.0"
version: str = __version__


class AguiRunner:
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion examples/fastapi_server/_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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,
)

Expand Down
4 changes: 3 additions & 1 deletion examples/fastapi_server/_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down Expand Up @@ -58,4 +60,4 @@ class HealthResponse(BaseModel):

status: str = "ok"
app_name: str
version: str = "1.0.0"
version: str = __version__
3 changes: 1 addition & 2 deletions tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion trpc_agent_sdk/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
This module defines the version information for TRPC Agent
"""

__version__ = '1.0.0'
__version__ = '1.1.1'
Loading