Skip to content

eve@0.2.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 06:17
· 1 commit to main since this release
5d2201b

Requires samva@^0.51.0 (1a5cec8)

Every Samva integration package now supports samva@^0.51.0 and no longer accepts 0.50. Install it next to the package:

npm install samva@^0.51.0

If you call the SDK yourself beside these packages, read the samva 0.51 release notes. email.enableReceiving takes the domain id alone, scheduled-message, campaign and API key responses no longer carry a member's email, and every SDK request attempt now times out after 30 seconds unless you set timeoutMs.

Pull request & contributors

Tool results are shaped for the model (1a5cec8)

The mailbox tools now return what an agent acts on instead of the raw API response, so the model reads fewer tokens and less untrusted markup.

  • get_thread returns { threadId, items, nextCursor }. Each item has the message id, channel, direction, occurredAt, from (address, name), to, text, and attachments (name, type); email items add subject and cc when anyone was copied; WhatsApp and SMS items add template for an outbound template message and contextMessageId for the message they quote or react to. text is the reply without its quoted history when Samva could separate it. HTML bodies, headers, authentication results, campaign attribution and actor references are gone.
  • search_threads returns { items, nextCursor } with each thread's id, channel, subject, preview, from, messageCount, folder, lastActivityAt, and spam: { reason } for a thread in Spam.
  • reply_to_customer returns { status, receipt } where receipt keeps actionId, state, messageId, threadId, waitReason, retryAt, reviewExpectedAt, executeUntil, skippedRecipients, problem (code, message), and decision (outcome, decider, reason). Read the full action with samva.mailboxes.getAction({ id, actionId }).

The package exports the new result types: SamvaReplyReceipt, SamvaThreadContent, SamvaThreadMessage, SamvaThreadList, SamvaThreadSummary, SamvaParticipant, and SamvaAttachment. @samva/eve passes the same results to its model.

Pull request & contributors