Testing Your Agent on Naptha Nodes
Now that your agent is registered on Naptha Hub using the hosted node, let's verify it works correctly on a local node too.
1. Local Node Setup
Configure Local Node & Hub
First, set up your local Naptha Node and Hub:
Access to the Naptha Node is currently private. Please reach out to us to get access.
Launch with systemd
Launch with docker
Configure the Naptha SDK for Local Testing
Update your SDK configuration: N.B We installed the SDK in the previous course. You can also follow the SDK repo instructions here
Register Your Agent on the Local Node
We will have to re-register your agent on the local node since it's a new node.
2. Run Production Tests
Here's an example using a vision agent:
Sample output:
Updating Your Agent
When you want to publish a new version:
- Update your version in
pyproject.toml
anddeployment.json
- Build new package with Poetry
- Push to Github with updated version tag
- Register your agent on Naptha Hub
Troubleshooting
Common Issues
Connection Issues
-
Check that Naptha SDK is running
-
Verify that you're using the correct node and hub URLs
Local Node Problems
Follow the troubleshooting steps in the Node README.
Next Steps
Amazing! Your agent is tested and ready for production use!
Feel free to share your agent module with friends and the community →