Tool Annotations

Tools
list_pages
update_section
create_page
publish
About this piece

Tool Annotations

An agent's tools listed with what each one touches, the reads and writes annotating themselves in turn and the withheld one striking through last.

Usage

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

import { Code17 } from "@/components/beste/piece/code17";

<Code17
  surface="card"
  bordered={false}
  inverted={false}
  title="Tools"
  tools={[
    {
      "name": "list_pages",
      "access": "read"
    },
    {
      "name": "update_section",
      "access": "write"
    },
    {
      "name": "create_page",
      "access": "write"
    },
    {
      "name": "publish",
      "access": "withheld"
    }
  ]}
  readLabel="reads"
  writeLabel="writes draft"
  withheldLabel="not exposed"
  stepMs={460}
/>

More Code pieces

View all Code
const user = await fetchUser("42");
const greeting = "Hello, Beste!";ts
greet.ts
export function greet(name: string) {
return `Hello, ${name}!`;
}
 
console.log(greet("Beste"));
members.ts
import { Sirius } from '@sirius/sdk'
const client = new Sirius(apiKey)
await client.members.create({ name })
Open command palette
⌘K
function greet(name) {
return 'Hi ' + name;
return `Hello, ${name}!`;
}