Code
Python or TypeScript
Open models, real documents.
Connect Doconda from a smolagents agent and get finished, editable, reviewed Word, Excel, PowerPoint and PDF files.
- 01Install the SDKpip install doconda or npm install @doconda/sdk, and your API key.
- 02Give your agent the toolsDoconda's tools, in Hugging Face's format.
- 03Your agent delivers the fileYour agent gets the link to the reviewed file.

import os
from smolagents import CodeAgent, InferenceClientModel, MCPClient
doconda = {
"url": "https://api.eu.doconda.com/mcp",
"transport": "streamable-http",
"headers": {"Authorization": f"Bearer {os.environ['DOCONDA_API_KEY']}"},
}
with MCPClient(doconda, structured_output=True) as tools:
agent = CodeAgent(tools=tools, model=InferenceClientModel())
print(agent.run("Crea una presentación sobre el cambio climático para un colegio"))
