Cookbook / Agent Weather

Agent Weather

agent

Agent-surface async fetch — prop city and action fetchForecast carry expose/describe so MCP agents can read and invoke them.

id
agent-weather
since
0.5.0
file
agent-weather.aihu
propprop.exposeprop.describestateactionaction.exposeaction.describegroupifelseifelseon:clickinterpolation

Run it

live · runnable

The real, compiled agent-weather.aihu component, hydrated as an island right here — fully interactive.

Source

agent-weather.aihu

Requires

concerns
stateeventsgovernance

Anti-patterns

  • Do not mark a mutating action expose: 'read' — the expose tier must match what the action does; fetchForecast writes state, so it is 'read write'.
  • Do not throw from an exposed action for ordinary failures — set an error state the agent can read back.

Related recipes