# `Twilio.Assistants.V1.Assistant.KnowledgeService`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/assistants/v1/assistant/knowledge_service.ex#L2)

Service for Knowledge API operations.

Operations: `list`, `update`, `delete`

# `delete`

```elixir
@spec delete(Twilio.Client.t(), String.t(), String.t(), keyword()) ::
  {:ok, map()} | {:ok, map(), map()} | :ok | {:error, Twilio.Error.t()}
```

Detach Knowledge to Assistant

Operation: `DeleteAssistantKnowledgeAttachment`

# `list`

```elixir
@spec list(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Page.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

List all knowledge for an Assistant

Operation: `ListKnowledgeByAssistant`

# `stream`

```elixir
@spec stream(Twilio.Client.t(), String.t(), map(), keyword()) :: Enumerable.t()
```

Stream: List all knowledge for an Assistant (lazy auto-pagination).

# `update`

```elixir
@spec update(Twilio.Client.t(), String.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Assistants.V1.Assistant.Knowledge.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Attach Knowledge to Assistant

Operation: `CreateAssistantKnowledgeAttachment`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
