Skip to Content
B Berry Docs
Reference

Echo starter

The executable starter created by berry init.

Source reference · cd46e0e78d73Read Markdown

This optional code-only example checks connectivity without paid model inference. It is not a prerequisite for the skill quickstart.

On a connected runtime, run:

berry init my-agent
berry deploy my-agent --id my-agent --permissions '[]'
berry agents

Take the returned agent ID, then run:

berry run AGENT_ID --request-id hello-ada-1 --input '{"name":"Ada"}' --wait

The completed result is {"message":"Hello, Ada!"}. Retain the request ID after an uncertain response. The CLI journey checks installation, execution and request replay.

plugin.json

{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "example.echo",
  "version": "1",
  "description": "Return a named message without model inference.",
  "extensions": {
    "ai.strawberry.berry": {
      "agents": {
        "echo": {
          "title": "Echo",
          "description": "Return a named message without model inference.",
          "entry": "echo"
        }
      }
    }
  }
}

echo.md

---
name: echo
description: Return a named message without model inference.
language: javascript
input:
  type: object
  properties:
    name:
      type: string
      description: Name to greet.
  required:
    - name
  additionalProperties: false
output:
  type: object
  properties:
    message:
      type: string
  required:
    - message
  additionalProperties: false
---
export default function (input) {
  return {message: `Hello, ${input.name}!`}
}

On this page