This is the AskUI documentation. The documentation covers:
- Python Vision Agent
- AskUI Suite
- Workspaces Service API
- AskUI Inference API
We follow the Diátaxis framework which organizes content into four distinct categories:
Step-by-step lessons for users who want to learn by doing. Build skills and confidence through hands-on experience.
Practical steps to solve specific problems. Focused instructions for users who need to accomplish particular tasks.
Conceptual discussions that provide context, background, and deeper understanding of how and why things work.
Technical specifications, API documentation, command references, and configuration options for quick lookup.
Install the Mintlify CLI to preview the documentation changes locally. To install, use the following command
npm install
Run the following command at the root of your documentation (where mint.json is)
npx mintlify dev
- Install all dependencies
pdm install
- Install newest version of askui-vision agent
pdm add -d askui@<latest version>
- Generate Docs
pdm run docs:api:generate
Note
The generated docs will be under the build folder.
The generated docs are simple markdown files. Methods are not sorted alphabetically.
Tip
- Generate docs without updating the
askuilibrary so you have the old version first - Copy the
buildfolder to ->build_old - Update
askuithen generate docs again - Now you can diff the new and old MD files
- And insert the diff into the MDX file.
The Python files you want to generate a documentation for need to be registered in pyproject.toml.
Example:
[[tool.pydoc-markdown.renderer.pages]]
title = "Retry"
name = "retry"
contents = [
"askui.retry.*",
]Then the mint.json needs to be updated to render new pages:
Example:
{
"group": "Python Vision Agent",
"pages": [
"02-api-reference/01-agent-frameworks/02-python/02-vision-agent-api/agent",
"02-api-reference/01-agent-frameworks/02-python/02-vision-agent-api/locators",
"02-api-reference/01-agent-frameworks/02-python/02-vision-agent-api/reporting",
+ "02-api-reference/01-agent-frameworks/02-python/02-vision-agent-api/retry",
"02-api-reference/01-agent-frameworks/02-python/02-vision-agent-api/tools",
"02-api-reference/01-agent-frameworks/02-python/02-vision-agent-api/types"
]
},For consistency remove the extra title from the generated file:
---
title: Retry
---
- <a id="askui.retry"></a>
- # askui.retry
<a id="askui.retry.Retry"></a>
## askui.retry.Retry
- Delete old Pages
# Current Docs
rm -r 02-api-reference/07-workspace-service- Regenerate Workspaces Service
npm run docs:generate:workspaces-api
--- Output ---
navigation object suggestion:
[
{
"group": "agent-executions",
"pages": [
...
]
}
]
openapi location suggestion:
openapi: https://workspaces.askui.com/openapi.json- Update Mintlify by coping output of previous command to
mint.jsonin
...
{
"group": "Workspaces Service",
"pages": <-- here -->
},
...- Delete old Pages
# Current Docs
rm -r 02-api-reference/05-askui-inference- Regenerate Workspaces Service
npm run docs:generate:inference-api
--- Output ---
navigation object suggestion:
[
{
"group": "API References",
"pages": [
...
]
}
]
openapi location suggestion:
openapi: https://inference.askui.com/openapi.json- Update Mintlify by coping output of previous command to
mint.jsonin
...
{
"group": "AskUI Inference",
"pages": <-- here -->
},
...Currently Working Progress
- Generate Markdown
& .\src\powershell\ADE-MarkdownGenerator.ps1- Copy
02-askui-suitefromsrc\powershell\out\02-askui-suiteto04-reference/02-askui-suite/02-askui-suite - Update Mintlify by coping the content of
src\powershell\out\output.jsontomint.jsonin
...
{
"group": "AskUI Suite",
"pages": <-- here -->
},
...To publish the changes.
git add *
git commit -m "<commit message>"
git push
- Mintlify dev isn't running - Run
mintlify installit'll re-install dependencies. - Page loads as a 404 - Make sure you are running in a folder with
mint.json