feat: introduce anp tool #1
Open
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.
Features
This pull request introduces the ANPTool for interacting with other agents using the Agent Network Protocol (ANP). The changes are spread across multiple files to integrate this new tool into the existing system. The most important changes include adding the ANPTool class, updating the configuration settings, and modifying the Manus prompt to include the new tool.
Feature Docs
Integration of ANPTool:
app/agent/manus.py: AddedANPToolto the list of available tools in theManusclass. [1] [2]app/prompt/manus.py: Updated theNEXT_STEP_PROMPTto include a description ofANPTool. [1] [2]app/tool/anp_tool.py: Added theANPToolclass, which includes methods for executing HTTP requests and handling authentication using DID.Configuration updates:
app/config.py: AddedANPSettingsclass and updatedAppConfigto includeanp_config. Modified_load_initial_configand added a property methodanp_configto handle the new configuration settings. [1] [2] [3] [4] [5]config/config.example.toml: Added example configuration for ANP tool, including paths to DID document and private key files.Test data:
config/did_test_public_doc/did.json: Added a sample DID document for testing purposes.config/did_test_public_doc/key-1_private.pem: Added a sample private key file for testing purposes.config/did_test_public_doc/private_keys.json: Added a sample private keys JSON file for testing purposesInfluence
Result
Other