From 7f1630b1773761149f3c17fda3df655d9d22eb1a Mon Sep 17 00:00:00 2001 From: Shresth Shukla <66516678+shuklaji28@users.noreply.github.com> Date: Tue, 17 Mar 2026 23:20:59 +0530 Subject: [PATCH] docs: clarify `from` field accessed as `from_` in Python SDK Updated 'from' field to include type and documentation for Python SDK usage.The `from` field in MessageItem and Message types is a reserved keyword in Python. Added documentation notes to clarify that Python SDK users must access this field as `from_` (e.g. `message.from_`). The alias="from" in the SDK handles JSON serialization correctly, but this was not documented. --- fern/definition/messages.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/fern/definition/messages.yml b/fern/definition/messages.yml index 7cea260..0913849 100644 --- a/fern/definition/messages.yml +++ b/fern/definition/messages.yml @@ -90,7 +90,9 @@ types: message_id: MessageId labels: MessageLabels timestamp: MessageTimestamp - from: MessageFrom + from: + type: MessageFrom + docs: Address of sender. Note - since `from` is a reserved keyword in Python, access this field as `from_` when using the Python SDK (e.g. `message.from_`). to: MessageTo cc: optional bcc: optional @@ -111,8 +113,10 @@ types: message_id: MessageId labels: MessageLabels timestamp: MessageTimestamp - from: MessageFrom - reply_to: + from: + type: MessageFrom + docs: Address of sender. Note - since `from` is a reserved keyword in Python, access this field as `from_` when using the Python SDK (e.g. `message.from_`). +reply_to: type: optional> docs: Reply-to addresses. In format `username@domain.com` or `Display Name `. to: MessageTo