> ## 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

[src/genai/types.ts:23](https://github.com/wandb/weave/blob/9591aba8a5e77309ee0858e5ba94d31c1bd7e404/sdks/node/src/genai/types.ts#L23)

***
