Vity Toolkit
TelegramTwitterGithubRequest new tool
  • Introduction
    • Vity Toolkit
    • 🚀Quick Start - Langchain
    • 🚀Quick Start - Vercel AI
  • Features
    • Apps and Actions
    • How can I use Action directly?
    • Agent Authentication
    • Extensions
  • Tools
    • Superteam Earn
    • Solana Wallet
    • Reddit
    • Gibwork
    • Twitter
  • EXAMPLES
    • AI Bounty Finder
Powered by GitBook
On this page
  • What are tools?
  • What are Apps and Actions?
  1. Features

Apps and Actions

Learn about apps and actions in Vity Toolkit

PreviousQuick Start - Vercel AINextHow can I use Action directly?

Last updated 5 months ago

Before explaining you that, let's first understand what is a tool.

What are tools?

Large Language Models (LLMs) work like a smart person who can understand and talk about different topics. They can help with tasks like writing content, giving more information, etc. However, they can't tweet that content on twitter or mail it to someone, as they don't interact directly with the outside world. This is where tools come in .

Tools are a powerful feature that allows you to connect language models to external resources like search engines, APIs, functions, databases, and more. This capability enables a richer set of behaviors by leveraging data stored in tools, taking actions through APIs, interacting with databases, querying search engines, and more.

This helps them to interact with the real world. Many AI models support tool calling (also called function calling).

What are Apps and Actions?

Apps is a term in Vity Toolkit refer to the applications that can be connected by you or your users like Twitter, Telegram, Earn, etc. Actions are tasks on top of tools that you can perform using wallets/accounts. (Send SOL using solana app).

You can think apps as collections of actions/tools. You can add multiple apps or actions and pass it as a tool to agent.

import { App, Action, LangchainToolkit } from "vity-toolkit";

const toolKit = new LangchainToolkit();

// Get all actions/tools from the app
const tools = toolKit.getTools({ apps: [App.SOLANA_WALLET] });

// Get specific actions/tools
const tools = toolKit.getTools({ actions: [Action.SOLANA_WALLET_GENERATE_KEYPAIR, Action.SOLANA_WALLET_GET_BALANCE, Action.SOLANA_WALLET_GET_MY_PUBLIC_KEY] });

😉