littlebird69
littlebird69
**Describe the bug** `SubAgentTool` calls `agentProvider.provide()` twice and never closes either instance: - once in the constructor ([SubAgentTool.java#L85](https://github.com/agentscope-ai/agentscope-java/blob/v2.0.4/agentscope-core/src/main/java/io/agentscope/core/tool/subagent/SubAgentTool.java#L85)). That sample agent is only read for its name/description and then dropped;...
**Describe the bug** Since #2799, a failed call persists the state, and that state already contains the current turn's input ([ReActAgent.java#L1227](https://github.com/agentscope-ai/agentscope-java/blob/v2.0.4/agentscope-core/src/main/java/io/agentscope/core/ReActAgent.java#L1227) → `saveStateAfterCallFailure`). `HarnessAgent` recovers from a context-overflow error with...
**Describe the bug** At the start of `doCallInner` ([ReActAgent.java#L1821-L1832](https://github.com/agentscope-ai/agentscope-java/blob/v2.0.4/agentscope-core/src/main/java/io/agentscope/core/ReActAgent.java#L1821-L1832)): ```java if (shutdownManager.checkAndClearShutdownInterruptedForState(state)) { log.info("Detected shutdown-interrupted session for agent {}, discarding duplicate input", getName()); msgs = List.of(); } ``` During shutdown,...
**Describe the bug** When tool-use arguments are truncated during compaction, both the message and the block are rebuilt from scratch, and most of their fields are lost. - [ConversationCompactor.java#L701](https://github.com/agentscope-ai/agentscope-java/blob/v2.0.4/agentscope-harness/src/main/java/io/agentscope/harness/agent/memory/compaction/ConversationCompactor.java#L701): ```java...
## Describe the bug 1. `ChatCompletionsResponseBuilder#buildResponse` (`agentscope-extensions-chat-completions-web`) never calls `setUsage(...)`, so the non-streaming `/v1/chat/completions` response has no `usage` object. The class javadoc example shows `"usage": {"prompt_tokens": 10, ...}`, and `ChatCompletionsResponse`...
**Is your feature request related to a problem? Please describe.** Follow-up to #3679 / #3713, which add `usage` to the **non-streaming** `/v1/chat/completions` response. The streaming response has no way to...
### Bug description Two problems in `ModelRegistry`'s factory-resolution cache (`resolvedCache`): **1. `registerFactory` does not invalidate the cache, so a newer factory never takes effect for ids that were already resolved.**...
### Bug description `VDBStoreBase#delete(String id)` is documented as *"@param id the document ID (UUID string) to delete"* ([VDBStoreBase.java#L68-L77](https://github.com/agentscope-ai/agentscope-java/blob/16cb024ae62a10db2aedc2371f4d729194ffda82/agentscope-extensions/agentscope-extensions-rag/agentscope-extensions-rag-simple/src/main/java/io/agentscope/core/rag/store/VDBStoreBase.java#L68-L77)). But the five built-in stores interpret that argument in two incompatible ways:...
**Describe the bug** On a database where the `vector` extension is not installed yet, the first `PgVectorStore` built against it can't write anything. Every `add` fails with `PSQLException: Unknown type...
**Describe the bug** `QdrantStore` can't connect when `location` is an IP address with a port and no scheme, such as `127.0.0.1:6334`. The Javadoc lists `"localhost:6334"` as a supported gRPC form,...