---
description: Learn about apps and actions in Vity Toolkit
---

# Apps and Actions

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 :wink:.&#x20;

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.&#x20;

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.

```typescript
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] });
```

