# Ask the agent

Start a personal agent over the herd data from Python, with your own OpenRouter key, and check its answer against the cube.

> This notebook is published unexecuted: it needs a service the build does not run.

## How we know

Data: MGAP/SNIG DICOSE sworn declarations 2024 and 2025 (graph `uruguay-cows`), via SPARQL and MCP on the demo's own endpoint.

## The notebook

- Read it: [https://cow-tools.sophia-labs.com/notebooks/ask-the-agent/index.html](https://cow-tools.sophia-labs.com/notebooks/ask-the-agent/index.html)
- Download: [ask-the-agent.ipynb](https://cow-tools.sophia-labs.com/notebooks/ask-the-agent/ask-the-agent.ipynb) (also in this workspace: file [`ipynb-ask-the-agent`](https://cow-tools.sophia-labs.com/notebooks/ask-the-agent/ask-the-agent.ipynb) in *Notebook files*)
- For agents: [index.md](https://cow-tools.sophia-labs.com/notebooks/ask-the-agent/index.md)

Reading path: previous: [*Finding other Uruguay data*](https://cow-tools.sophia-labs.com/guide/notebook-finding-other-data/index.md). The whole path: [`reading-path`](https://cow-tools.sophia-labs.com/guide/reading-path/index.md).

## Metadata

```json
{
 "@context": "https://schema.org",
 "@type": [
  "CreativeWork",
  "SoftwareSourceCode"
 ],
 "name": "Ask the agent",
 "abstract": "Start a personal agent over the herd data from Python, with your own OpenRouter key, and check its answer against the cube.",
 "url": "https://cow-tools.sophia-labs.com/notebooks/ask-the-agent/index.html",
 "programmingLanguage": "Python",
 "license": "https://creativecommons.org/licenses/by/4.0/",
 "creditText": "cow-tools, Sophia Labs",
 "encoding": [
  {
   "@type": "MediaObject",
   "contentUrl": "https://cow-tools.sophia-labs.com/notebooks/ask-the-agent/ask-the-agent.ipynb",
   "encodingFormat": "application/x-ipynb+json"
  }
 ],
 "isBasedOn": {
  "@type": "Dataset",
  "name": "DICOSE – SNIG sworn livestock declarations 2024–2025",
  "url": "https://catalogodatos.gub.uy/dataset/mgap-datos-preliminares-basados-en-la-declaracion-jurada-de-existencias-dicose-snig-2025"
 }
}
```

## Connected (the graph's wires)

- Previous in the reading path: [Finding other Uruguay data](https://cow-tools.sophia-labs.com/guide/notebook-finding-other-data/index.md)

---

This document is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/), credit "cow-tools, Sophia Labs"; the data it describes keeps its own licence (Uruguay's open-data licence).

The cow-tools guide, Notebooks: https://cow-tools.sophia-labs.com/guide/notebook-ask-the-agent/ (this page for people) · the whole guide: https://cow-tools.sophia-labs.com/guide/index.md · in Sophia: the graph `cow-tools-guide`, document `notebook-ask-the-agent` (MCP `read_document` at https://cow-tools.sophia-labs.com/mcp). CC BY 4.0, credit "cow-tools, Sophia Labs".
