> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MessagePart

> TypeScript SDK reference

# MessagePart

Ƭ **MessagePart**: \{ `content`: `string` ; `type`: `"text"`  } | \{ `content`: `string` ; `type`: `"reasoning"`  } | \{ `arguments?`: `string` ; `toolCallId`: `string` ; `toolName`: `string` ; `type`: `"tool_call"`  } | \{ `result?`: `string` ; `toolCallId`: `string` ; `type`: `"tool_result"`  } | \{ `fileId`: `string` ; `mimeType?`: `string` ; `modality`: [`Modality`](./modality) ; `type`: `"file"`  } | \{ `content`: `string` ; `mimeType`: `string` ; `modality`: [`Modality`](./modality) ; `type`: `"blob"`  } | \{ `modality`: [`Modality`](./modality) ; `type`: `"uri"` ; `uri`: `string`  }

#### Defined in

[genai/types.ts:17](https://github.com/wandb/weave/blob/6538626556c93d6f31ae725fdefe4e6b8b71bc2c/sdks/node/src/genai/types.ts#L17)

***
