AIBTC Working Group
  • AIBTC
  • Prompt2DAO
  • AIBTC Contracts
    • DAO Base Layer
    • DAO Extensions
      • Action Proposal Voting
      • Core Proposal Voting
      • DAO Charter
      • Onchain Messaging
      • Payment Processor
      • Timed Vault
      • Token Owner
      • Treasury
    • DAO Proposals
      • Action Proposals
      • Core Proposals
    • Agent Account
  • Agent Tools
    • Overview
    • Available Tools
      • Smart Wallet Tools
      • Agent Wallet Tools
      • DAO Tools
      • Database Tools
      • Faktory Tools
  • AIBTC Cache
    • Overview
    • Contract Calls
      • API Design
      • Endpoints
        • Decode Clarity Value
        • Read-Only Function Calls
        • Contract ABI
        • Known ABI Contracts
      • Clarity Value Types
      • Integration Examples
    • Cache Services
    • Error Handling
    • Utilities
  • Prompting
    • Action Proposal Prompts
    • Smart Wallet Prompts
  • Links
    • Common Terms
    • Our App
    • Discord
    • GitHub
    • Prompt2DAO on X
    • AIBTC on X
  • Documentation Templates
    • Smart Contract Documentation
    • Cache Service Documentation
    • Cache Endpoint Documentation
    • Agent Tool Documentation
    • Prompting Documentation
  • Example Implementations
    • Smart Contract Example
    • Cache Service Example
    • Cache Endpoint Example
    • Agent Tool Example
Powered by GitBook
On this page
  • How Agent Tools Work
  • Tool Architecture
  • Effective Prompting Patterns
  • Example Prompting Pattern
  • Useful Debugging Techniques
  • Tool Security
  • Related Repositories
  • agent-tools-ts
  • aibtcdev-backend
  1. Agent Tools

Overview

Overview of the agent tools system

Agent tools are modular components that provide specific functionality to AI agents. They allow agents to interact with blockchain networks, manage wallets, interact with DAOs, and perform various other tasks.

How Agent Tools Work

Each tool:

  • Has a specific purpose and functionality

  • Can be enabled or disabled for specific agents

  • Has clear input and output specifications

  • Provides error handling and feedback

Tool Architecture

Tools follow a consistent pattern:

  1. Input Schema: Each tool has a defined input schema using Pydantic models

  2. Execution Logic: Tools contain the logic to perform their specific function

  3. Error Handling: Tools provide standardized error responses

  4. Return Values: Tools return structured data that can be parsed by agents

Effective Prompting Patterns

When using agent tools, following consistent prompting patterns helps ensure successful execution. Each prompt should:

  1. Start with a clear action description that matches the tool's purpose

  2. Include all required parameters with appropriate values

  3. Use parameter names that match the tool's expected inputs

Example Prompting Pattern

[Action description that matches tool purpose]
- [parameter1 name]: [parameter1 value]
- [parameter2 name]: [parameter2 value]

Useful Debugging Techniques

When working with tools, these prompting patterns can help with debugging:

  • Get transaction details

    Get the details for the TXID 0x3cc19a5aa3ba3af9e14716e3a988de748b9bc034efd4fa13f7d30c00a901ff9f and from those details, tell me the proposal ID and voting period.
  • Request detailed error information

    If you run into an error post the detailed inputs and outputs from the tool so we can debug.
  • Get transaction history for an address

    Tell me more about the last 5 transactions sent by ST43FFM04WT907DE9EXHQPBG3BW7R6R7R6RXZV6C
  • Get contract transaction history

    Tell me more about last 5 transactions in the contract ST3YT0XW92E6T2FE59B2G5N2WNNFSBZ6MZKQS5D18.faces-action-proposals-v2

Tool Security

Tools follow these security principles:

  • Tools verify caller permissions where necessary

  • Critical operations require explicit confirmation

  • Tools use standardized error handling

  • Tools emit detailed logs for auditing purposes

For detailed documentation on each tool category, see the individual tool pages.

Related Repositories

The agent tools system is built on two key repositories:

agent-tools-ts

  • Low-level blockchain interactions

  • Wallet management utilities

  • Smart contract interactions

  • TypeScript interfaces and implementations

  • Command-line tools for testing and development

aibtcdev-backend

  • Python wrappers for the TypeScript tools

  • FastAPI endpoints for agent interactions

  • LangGraph integration for agent workflows

  • Background task scheduling

  • Database abstractions and models

  • Webhook handling for blockchain events

PreviousAgent AccountNextAvailable Tools

Last updated 1 month ago

contains the TypeScript implementation of the agent tools, powered by Bun and Stacks.js. This repository provides:

is the Python backend service that exposes these tools to LLM agents. This repository includes:

agent-tools-ts
aibtcdev-backend