Documentation
¶
Index ¶
- func AgentChatFromAPI(chat api.Chat) outfmt.AgentChat
- func AgentChatLabel(title, network string, fallback string) string
- func AgentMessageFromAPI(m api.Message, otherName string) outfmt.AgentMessage
- func Contacts(ctx context.Context, app TableProvider, w io.Writer, contacts []api.Chat)
- func InboxItems(ctx context.Context, app TableProvider, w io.Writer, items []domain.InboxItem)
- func MessagesSearch(ctx context.Context, app TableProvider, w io.Writer, ...)
- func NetworkContacts(ctx context.Context, app TableProvider, w io.Writer, contacts []api.Contact)
- type TableProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentChatFromAPI ¶
AgentChatFromAPI converts an API chat into agent-friendly output data.
func AgentChatLabel ¶
AgentChatLabel formats a human-friendly chat label for agent output.
func AgentMessageFromAPI ¶
func AgentMessageFromAPI(m api.Message, otherName string) outfmt.AgentMessage
AgentMessageFromAPI converts an API message into agent-friendly output data.
func InboxItems ¶
InboxItems renders inbox items in either agent or table format.
func MessagesSearch ¶
func MessagesSearch(ctx context.Context, app TableProvider, w io.Writer, result api.SearchMessagesResponse)
MessagesSearch renders search results in either agent or table format. The caller should ensure result.Messages is already paginated.
func NetworkContacts ¶ added in v0.2.14
NetworkContacts renders a list of per-account network contacts as a table.
Types ¶
Click to show internal directories.
Click to hide internal directories.