name: custom-weather-agent
description: >
  Demonstrates the custom tool plugin system. This agent uses a standalone
  WeatherLookup tool that lives in a separate folder and is loaded at runtime
  via --custom-tools-folder. The tool imports its dependencies from esm.sh and
  runs in an isolated Bun process — completely decoupled from the smol-js package.

model:
  modelId: anthropic/claude-haiku-4.5
  baseUrl: https://openrouter.ai/api/v1

tools:
  WeatherLookup:
    type: WeatherLookup

agents:
  weather_assistant:
    type: ToolUseAgent
    description: >
      A helpful weather assistant that uses the WeatherLookup tool to fetch
      current conditions for any city the user asks about.
    tools:
      - WeatherLookup
    maxSteps: 5
    customInstructions: >
      You are a friendly weather assistant. When the user asks about weather
      in a city, use the WeatherLookup tool to fetch current conditions.
      Present the information in a clear, conversational way.
      If the user asks about multiple cities, look them up one at a time.

entrypoint: weather_assistant
