Skip to content

smart_compose

ComposeMessageRequest

Bases: TypedDict

A request to compose a message.

Attributes:

Name Type Description
prompt str

The prompt that smart compose will use to generate a message suggestion.

Source code in nylas/models/smart_compose.py
 7
 8
 9
10
11
12
13
14
15
class ComposeMessageRequest(TypedDict):
    """
    A request to compose a message.

    Attributes:
        prompt: The prompt that smart compose will use to generate a message suggestion.
    """

    prompt: str

ComposeMessageResponse dataclass

A response from composing a message.

Attributes:

Name Type Description
suggestion str

The message suggestion generated by smart compose.

Source code in nylas/models/smart_compose.py
18
19
20
21
22
23
24
25
26
27
28
@dataclass_json
@dataclass
class ComposeMessageResponse:
    """
    A response from composing a message.

    Attributes:
        suggestion: The message suggestion generated by smart compose.
    """

    suggestion: str