1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!-- Generated by box-gantry. DO NOT EDIT. -->
# AiManager
Reach these methods through the `ai` field on `client::Client`.
## ask
`POST /ai/ask`
**Request body** (`application/json`): `AiAsk`
**Returns:** `AiResponseFull`
**Example**
```rust
let result = client.ai.ask(schemas::AiAsk { /* … */ }).await?;
```
## create_text_gen
`POST /ai/text_gen`
**Request body** (`application/json`): `AiTextGen`
**Returns:** `AiResponse`
**Example**
```rust
let result = client.ai.create_text_gen(schemas::AiTextGen { /* … */ }).await?;
```
## get_agent_default
`GET /ai_agent_default`
| Parameter | In | Type | Required |
|---|---|---|---|
| `mode` | query | `GetAgentDefaultMode` | yes |
| `language` | query | `String` | no |
| `model` | query | `String` | no |
**Returns:** `AiAgent`
**Example**
```rust
let result = client.ai.get_agent_default(Default::default(), None).await?;
```
## extract
`POST /ai/extract`
**Request body** (`application/json`): `AiExtract`
**Returns:** `AiResponse`
**Example**
```rust
let result = client.ai.extract(schemas::AiExtract { /* … */ }).await?;
```
## create_extract_structured
`POST /ai/extract_structured`
**Request body** (`application/json`): `AiExtractStructured`
**Returns:** `AiExtractStructuredResponse`
**Example**
```rust
let result = client.ai.create_extract_structured(schemas::AiExtractStructured { /* … */ }).await?;
```