Build an Australian economic agent
Wire ausdata into a LangGraph agent that answers macro questions on demand.
Steps
- 1Define the tool with the OpenAPI spec.
- 2Bind it to your model.
- 3Test with a macro question.
Code
cURL
curl https://api.ausdata.io/.well-known/ai-plugin.json \
-H "Authorization: Bearer YOUR_KEY"Python
import requests
r = requests.get(
"https://api.ausdata.io/.well-known/ai-plugin.json",
headers={"Authorization": "Bearer YOUR_KEY"},
)
print(r.json())JavaScript
const r = await fetch("https://api.ausdata.io/.well-known/ai-plugin.json", {
headers: { Authorization: "Bearer YOUR_KEY" },
});
console.log(await r.json());Watch out for
- Bearer key belongs on the server, not the agent prompt.
Related
Try it now
500 free calls per month. No credit card.
Get a free API key