Guava.Commands.ActionSuggestion (Guava v0.34.0)

Copy Markdown View Source

Suggest zero or more actions in response to an action request.

Empty actions means no match; one means an unambiguous intent; multiple means an ambiguous intent to disambiguate with the caller.

Summary

Functions

Build an action suggestion, normalizing the legacy action_key field into the actions list when actions is empty (matching the Python model).

Types

t()

@type t() :: %Guava.Commands.ActionSuggestion{
  action_description: String.t(),
  action_key: String.t() | nil,
  actions: [Guava.Commands.ActionCandidate.t()],
  command_type: String.t(),
  intent_id: String.t()
}

Functions

new(attrs)

@spec new(keyword() | map()) :: t()

Build an action suggestion, normalizing the legacy action_key field into the actions list when actions is empty (matching the Python model).