Create explicit HTTP GET/POST tools for Ava to make API calls.
Ava needs to interact with external APIs (forms, analytics, web services) as part of customer acquisition for PodcastItLater. While python_exec can do this, explicit HTTP tools are clearer and safer.
1. Create Omni/Agent/Tools/Http.hs module
2. Two tools: http_get and http_post
3. Support headers, query params, JSON body
4. Return status code, headers, body
5. Timeout after 30 seconds
{
"name": "http_get",
"parameters": {
"url": "string (required)",
"headers": "object (optional) - key-value pairs",
"params": "object (optional) - query parameters"
}
}
{
"name": "http_post",
"parameters": {
"url": "string (required)",
"headers": "object (optional)",
"body": "object or string (optional) - JSON body or raw string",
"content_type": "string (optional) - default application/json"
}
}
{
"status": 200,
"headers": {"content-type": "application/json"},
"body": "...response body as string..."
}