PhoenixKitAgent.Web.Dock.Texts (PhoenixKitAgent v0.1.0)

Copy Markdown View Source

What the chat panel (PhoenixKitAgent.Web.Dock) tells a person instead of a code: the refusals of PhoenixKitAgent.Conversations, PhoenixKitAgent.Turns and PhoenixKitAgent.Attachments, the codes of a failed attachment (PhoenixKitAgent.Attachments.Processor), the notices of a turn (stored in English, shown by their code), the states and refusals of a confirmation card (PhoenixKitAgent.Confirmations) and the upload errors of LiveView. A code this module does not know gets a general text, never the code itself.

Summary

Functions

The text for the error code of a failed attachment.

The line of the notice that settles a confirmation card, by its outcome.

The text for a click on a confirmation card that did nothing (the card keeps waiting): the refusals of PhoenixKitAgent.Confirmations, {:refused, code} with the executor's code among them.

The heading of a confirmation card in its state.

The text of a notice in the feed by its error code, in the panel's language, or nil for a code whose stored text says more than the code (a model error, which also tells whether the files were taken off the message): that one is shown as it was written.

The feed's notice text, including the two fixed model-error texts whose shared error code does not say whether the pictures were taken off the message. Older stored notices are translated too; other text stays as stored.

The text for a refusal of a call the panel made.

The text for an error of a LiveView upload entry.

Functions

attachment_error(code)

@spec attachment_error(String.t() | nil) :: String.t()

The text for the error code of a failed attachment.

card_outcome(arg1)

@spec card_outcome(String.t()) :: String.t()

The line of the notice that settles a confirmation card, by its outcome.

card_refusal(reason)

@spec card_refusal(term()) :: String.t()

The text for a click on a confirmation card that did nothing (the card keeps waiting): the refusals of PhoenixKitAgent.Confirmations, {:refused, code} with the executor's code among them.

card_title(arg1)

@spec card_title(String.t()) :: String.t()

The heading of a confirmation card in its state.

notice(code)

@spec notice(String.t() | nil) :: String.t() | nil

The text of a notice in the feed by its error code, in the panel's language, or nil for a code whose stored text says more than the code (a model error, which also tells whether the files were taken off the message): that one is shown as it was written.

notice(code, content)

@spec notice(String.t() | nil, String.t() | nil) :: String.t() | nil

The feed's notice text, including the two fixed model-error texts whose shared error code does not say whether the pictures were taken off the message. Older stored notices are translated too; other text stays as stored.

refusal(reason)

@spec refusal(term()) :: String.t()

The text for a refusal of a call the panel made.

upload_error(arg1)

@spec upload_error(atom()) :: String.t()

The text for an error of a LiveView upload entry.