Conversation
…/20260320130011748_r_release_1003870_meow-agent-code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Related Issue
This pull request introduces a new automatic tool signature injection feature for CodeactTools and bumps the project version to 0.2.2 across all modules. The main enhancement is the addition of a
CodeactToolSignatureAgentHook, which injects Python class/function stubs for all registered CodeactTools into the prompt, ensuring the LLM can reference these tools correctly during code generation. The feature is enabled by default but can be toggled via the builder API. Additionally, hook priority constants are updated to accommodate the new hook.New feature: CodeactTool signature injection
CodeactToolSignatureAgentHook, which automatically injects Python signatures (class/function stubs) for all registered CodeactTools into the prompt at theBEFORE_AGENTphase, allowing the LLM to reference them correctly inwrite_code. The hook avoids duplicate injections and provides usage guidelines in the injected message. (assistant-agent-autoconfigure/src/main/java/com/alibaba/assistant/agent/autoconfigure/hook/CodeactToolSignatureAgentHook.java)CodeactAgent.CodeactAgentBuilderto support enabling/disabling the tool signature injection viaenableToolSignatureInjection(boolean)(default: enabled). The builder automatically registers the new hook if enabled. (assistant-agent-autoconfigure/src/main/java/com/alibaba/assistant/agent/autoconfigure/CodeactAgent.java) [1] [2] [3] [4]Infrastructure and configuration
CODEACT_TOOL_SIGNATURE_HOOK(priority 8) to ensure the signature injection runs after state initialization but before experience hooks. (assistant-agent-common/src/main/java/com/alibaba/assistant/agent/common/constant/HookPriorityConstants.java)Version updates
pom.xmland all submodules to reflect the new feature. (pom.xml,assistant-agent-autoconfigure/pom.xml,assistant-agent-common/pom.xml,assistant-agent-core/pom.xml,assistant-agent-evaluation/pom.xml,assistant-agent-extensions/pom.xml,assistant-agent-prompt-builder/pom.xml,assistant-agent-start/pom.xml) [1] [2] [3] [4] [5] [6] [7] [8]