Function Call

search_docs
done
query:"rate limiting"
limit:5
About this piece

Function Call

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

Usage

The import and the props worth knowing about, in one place.

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

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

More AI pieces

View all AI
  • Searching docs
  • Reading file
  • Running query
  • Writing answer
ts
const slug = (s: string) =>
  s.toLowerCase().replace(/\s+/g, '-');
You are a helpful assistant. The user asked: {{question}}. Answer in {{tone}} tone.
System prompt

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

claude-sonnet

Explain rate limiting strategies with simple examples.

Research Copilot4 tools

Searches papers and drafts literature reviews on request.