Function Call

Tool invocation card with the function name, typed arguments in monospace, and a running or done status pill.

search_docs
done
query:"rate limiting"
limit:5

New here? Read the installation guide.

Import & use
import { Ai22 } from "@/components/beste/piece/ai22";

<Ai22
  fn="search_docs"
  args={[
    {
      "key": "query",
      "value": "\"rate limiting\""
    },
    {
      "key": "limit",
      "value": "5"
    }
  ]}
  status="done"
  tone="violet"
/>

More AI pieces

View all AI
ts
const slug = (s: string) =>
  s.toLowerCase().replace(/\s+/g, '-');

Generated Code

AI code output card with a language tag, copy and regenerate actions, and a monospace block below.

support-reply.prompt
You are a helpful assistant. The user asked: {{question}}. Answer in {{tone}} tone.

Prompt Template

Monospace prompt card with inline handlebars-style variables highlighted in violet against plain body text.

System prompt

You are a concise copywriter. Reply in 2 sentences max and avoid em dashes.

System Prompt

Dashed-border card with a violet scroll icon, uppercase label, and an edit button for the system instructions.

claude-sonnet

Explain rate limiting strategies with simple examples.

Playground Prompt

Playground card with the selected model, a prompt draft box, and a tone-colored Run button to kick off the request.

Tokens4,820 / 8,192

Token Counter

Token-usage card with used of total readout and a fill bar that shifts emerald to amber to rose.

Research Copilot4 tools

Searches papers and drafts literature reviews on request.

Assistant Card

Catalog card for a configured assistant with a tone-filled bot tile, name, short description, and the tool count.