Skip to content

Component showcase

Common docs components in one page. Copy the markup you need.

  1. Create an agent

    Click “New agent” in the console, pick a model and write the system prompt.

  2. Add a tool

    Create a webhook tool and enable it on the agent.

    终端窗口
    curl -X POST https://api.example.com/hook
  3. Deploy

    Create a version and deploy it to dev.

Parameter Type Required Description
agent_id string Yes Agent ID
environment "dev" | "test" | "prod" No Deployment environment, default dev
timeout_ms number No Tool timeout in milliseconds

Inline code such as bun run dev:docs。A block with a title and line highlights:

src/agent.ts
import { createAgent } from "@modeaix/sdk"
const agent = await createAgent({
name: "support",
model: "gpt-4o",
})

Language tabs:

终端窗口
curl https://api.example.com/v1/agents \
-H "Authorization: Bearer $MODEAIX_KEY"

Diff:

const model = "gpt-4o-mini";
const model = "gpt-4o";

System architecture

For a local file use <video controls src="/demo.mp4"></video>, placed under public/.

New Beta Deprecated Default
  • Directoryapps
    • api
    • Directorydocs
      • Directorysrc
        • Directorycontent
          • docs components.mdx
      • astro.config.mjs
  • Directorypackages
    • shared
Why versions?

Versions are immutable snapshots, so deployed behavior is reproducible and easy to roll back.

Quickstart

Create your first agent in five minutes.

Security

Secret encryption and outbound protection.

Good docs save the reader one question.

Footnote example1。

  1. Footnote text appears at the bottom of the page. ↩