box-open-sdk 0.3.1

Box API client for Rust (open source, community, punk rock) — typed models, async managers, and a reqwest runtime with retry, backoff, and token refresh.
Documentation
<!-- 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?;
```