# AiManager
Reach these methods through the `ai` field on `client::Client`.
## ask
`POST /ai/ask`
**Request body** (`application/json`): `AiAsk`
**Returns:** `AiResponseFull`
## create_text_gen
`POST /ai/text_gen`
**Request body** (`application/json`): `AiTextGen`
**Returns:** `AiResponse`
## get_agent_default
`GET /ai_agent_default`
| `mode` | query | `GetAgentDefaultMode` | yes |
| `language` | query | `String` | no |
| `model` | query | `String` | no |
**Returns:** `AiAgent`
## extract
`POST /ai/extract`
**Request body** (`application/json`): `AiExtract`
**Returns:** `AiResponse`
## create_extract_structured
`POST /ai/extract_structured`
**Request body** (`application/json`): `AiExtractStructured`
**Returns:** `AiExtractStructuredResponse`