Releases: trpc-group/trpc-agent-python
v1.1.10
v1.1.9
Features
- Model: Added
http_client_factorysupport toOpenAIModel, allowing callers to inject a customhttpx.AsyncClientfactory to control HTTP connection lifecycle and pool settings such as keepalive expiry (#83).
Bug Fixes
- Telemetry: Switched
agent_runandinvocationspans back tostart_as_current_spanso child spans such ascall_llminherit the correct parent context, restoring complete trace attributes (including system instructions and tools) in Langfuse reporting.
v1.1.8
Features
- Session: Reworked session history storage from
Event.model_flags-based model visibility to an active/historical split, withSession.eventsholding the active model window andSession.historical_eventsoptionally retaining events moved out by max-event filtering, TTL, or summarization. - Session: Added
SessionServiceConfig.store_historical_events, updated Redis, SQL, and InMemory persistence semantics for active/historical events, and kept list APIs lightweight by omitting both active and historical events fromlist_sessions(). - Session: Optimized summarization by keeping
[summary_event, recent_events...]as the new active window and checking only the leading summary anchor instead of repeatedly scanning the event list. - Model: Added configuration support for OpenAI/Anthropic APIs and LiteLLM prompt cache.
Bug Fixes
- Telemetry: Propagated span context correctly in async generators by using
start_spanwith context attach/detach, and fixed member-agent input tracing to preferoverride_messagesoveruser_content.
v1.1.7
Bug Fixes
- Runner: Added
close_session_service_on_closeandclose_memory_service_on_closecontrols so short-lived runners can skip closing externally managed session and memory services, such as shared Redis-backed services. - MCP: Updated Streamable HTTP session creation to prefer the non-deprecated
streamable_http_clientAPI, with fallback support for older MCP SDKs that only exposestreamablehttp_client. - MCP: Moved Streamable HTTP headers and timeout configuration onto an owned
httpx.AsyncClient, avoiding deprecated transport arguments while keeping the HTTP client lifecycle tied to the MCP session context. - Storage: Fixed frequent sqlite warnings in
SqlSessionServiceby consistently using database-sidefunc.now()for update timestamps.
v1.1.6
Features
- Skill: Added a recoverable Cube sandbox runtime for skills, including
CubeClientConfig, a unifiedcreate_cube_sandbox_cliententry point, optionalauto_recoversupport inCubeSandboxClient, sandbox lifecycle helpers, and directCubeWorkspaceRuntimecreation from the client. - Skill: Unified skill load/run/exec/stager paths around repository-level workspace runtime resolution via
repository.get_workspace_runtime(ctx), so tools under the same skill repository share one workspace runtime context. - MCP: Added MCP tool caching to avoid repeated network access.
- Tools: Added
GraphAgentsupport inAgentTool, allowing wrapped graph agents to return results from tool context state. - Examples/Eval: Restored evaluation examples that were previously removed during open-source cleanup.
- Optimizer: Added support for the prompt self-optimization
AgentOptimizer.
Bug Fixes
- Storage: Fixed frequent sqlite warnings in
SqlSessionServiceby consistently using database-sidefunc.now()for update timestamps.
v1.1.5
1.1.5 (2026-05-19)
Features
-
Tools: Added
StreamingProgressToolwith matchingToolsProcessorplumbing so tools can surface intermediate progress aspartial=Trueevents while still emitting a single finalfunction_response; includedBaseToolstreaming hooks, thellmagent_with_streaming_progress_toolexample and verification script. -
Eval: Added
RemoteEvalServiceto drive evaluations against agents exposed over remote interfaces, refactoredAgentEvaluatorto support remote agent calls, and expanded English/Chinese evaluation docs. -
Model: Landed the OpenAI-compatible adapter layer (
models/openai_adapter/{_base,_deepseek,_hunyuan}.py) that isolates provider-specific behavior fromOpenAIModel, including DeepSeek v4 thinking /response_format/reasoning_content/ token usage handling and hy3-preview ToolPrompt text parsing with streaming filter. -
Examples: Added
examples/mempalace_mcp(MemPalace via MCP) and updatedexamples/llmagent_with_thinkingto enableadd_tools_to_promptonly for hy3-preview and display thinking / tool calls / final answer separately. -
Utils: Added
json_loads_repairandjson_repair_stringhelpers (backed byjson_repair) undertrpc_agent_sdk.utils, with full unit test coverage. -
Model/Tools: Adopted
json_repaironly on JSON-tolerant paths —JsonToolPrompt/XmlToolPromptparse_function, non-streaming OpenAI tool-call args,AgentToolstructured-output validation, skills tool result parsing — while keeping strictjson.loadsfor the streaming tool-call accumulator (to preserve "wait for next chunk" semantics) and Hunyuan plain-text<arg_value>parsing (to avoid silently coercing plain text into empty strings). -
Model: Fixed ToolPrompt streaming parsing so multiple tool calls in a single response are all preserved instead of only the last one being kept.
Bug Fixes
- Teams: TeamAgent now honors
actions.skip_summarizationfrom custom tool events, so tools likeAgentTool(skip_summarization=True)andStreamingProgressTool(skip_summarization=True)end the leader loop without an extra summarization turn (previously masked by leader'sdisable_react_tool=True).
v1.1.4
Bug Fixes
- Tools: Removed default
mempalace_toolexports fromtrpc_agent_sdk.toolsto avoid forcing MemPalace optional dependencies during base package import.
v1.1.3
Features
- Model: Added an OpenAI-compatible adapter layer to isolate provider-specific behaviors, including DeepSeek v4 reasoning/format handling and hy3-preview tool-prompt parsing support.
- Memory: Added MemPalace integration with
MemPalaceMemoryServiceandmempalace_tool, plus related examples and documentation. - Code Execution: Added Cube/E2B sandbox executor and workspace runtime with optional dependency support and end-to-end example coverage.
- Eval: Added support for evaluating the same metric across different LLMs.
Bug Fixes
- Model: Fixed ToolPrompt streaming parsing so multiple tool calls in one response are preserved instead of only the last call.
- Storage: Improved SQL storage compatibility by filtering empty content parts, fixing MySQL
DynamicPickleTypeserialization, and stabilizing session timestamp updates. - Eval: Fixed judge-agent JSON output handling in the eval module.
- CI: Added missing
e2b-code-interpretertest dependency to prevent cube test collection failures.
1.1.2.post1
Features
- Session: Updated session summarization to retain full conversation history while marking summarized events as model-invisible.
- Session: Added backend-threaded summarization execution to avoid blocking front-end conversation turns.
- Skill: Added multi-user support for skill operations.
Bug Fixes
- Code Execution: Fixed the conflict between code execution and tool invocation where tool data could be lost after code execution.
- MCP: Added support for parsing and returning multiple MCP tool results in a single response.
v1.1.2
Features
- Telemetry: Added OpenTelemetry metrics reporting and introduced
custom_metricsto support framework metric reporting when parsing remote agent responses. - Tools: Added
web_searchwith DuckDuckGo and Google providers, and addedweb_fetchfor webpage content retrieval. - Docs/Examples: Added usage documentation and examples for
web_searchandweb_fetch.