Toly
  • Welcome
  • Getting Started
    • Purpose of the AI Explorer
    • Features
  • Developer Guide
    • Prerequisites
    • Toly Agent
    • Functions
    • Developer Queries
  • User Guide
    • About Toly User Guide
    • Use Cases
    • Making the Most of Toly
    • Support
Powered by GitBook
On this page
  1. Developer Guide

Toly Agent

The /agent endpoint is a powerful API developed using Python. It leverages various tools and integrations to handle blockchain-related operations, particularly for the Solana ecosystem.

Endpoints

1. Health Check

  • GET /health A simple endpoint to verify the application's health status.

    • Response:

      • 200 OK: Application is running.

2. Agent Route

  • POST /agent Used for querying an agent to get responses.

Endpoint Overview

  • Endpoint: /agent

  • Method: POST

  • Purpose: Handles queries related to Solana blockchain operations and asset management.

Request Format

Body Parameters

  • question (string, required): The query or command for the agent to execute.

    • Example: "Get portfolio value for a wallet."

  • thread_id (integer, optional): Used to track context or session in a conversation.

    • Default: 0

  • Request Parameters:

    • Body:

      {
        "question": "string",
        "thread_id": 0
      }

  • Responses:

    • 200 OK: Returns the agent's answer.

    • 422 Validation Error: Invalid input.

PreviousPrerequisitesNextFunctions

Last updated 4 months ago