Skip to content

PromptSuggestionsUpdate

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.base
Base class for generated models.

⋔ Inheritance diagram

graph TD
  95970858337344["session_updates.PromptSuggestionsUpdate"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970858337344
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

UNSTABLE: Suggested next prompts, replacing any previous suggestions.

Only sent if the client advertised session.prompt_suggestions.

Source code in src/aclientp/schema/session_updates.py
class PromptSuggestionsUpdate(AnnotatedObject):
    """**UNSTABLE**: Suggested next prompts, replacing any previous suggestions.

    Only sent if the client advertised ``session.prompt_suggestions``.
    """

    session_update: Literal["prompt_suggestions_update"] = Field(
        default="prompt_suggestions_update", init=False
    )

    suggestions: Sequence[PromptSuggestion]
    """The suggestions the Client can offer, ordered most likely first."""

suggestions instance-attribute

suggestions: Sequence[PromptSuggestion]

The suggestions the Client can offer, ordered most likely first.

:fa-brands-github: Show source on GitHub