Web Request
Your agents can handle arbitrary web requests by using the request
perception type. This lets you define any REST interface you like for your agent, such as webhook handlers.
<Agent>
<Perception
type='request'
handler={async (e) => {
cont { request } = e.data;
return new Response(JSON.stringify({
ok: true,
}));
}}
/>
</Agent>