Interface: DeliverTurnOptions
Everything deliverTurn needs to answer one inbound activity.
Properties
Section titled “Properties”activity
Section titled “activity”activity:
object
The validated inbound activity.
Index Signature
Section titled “Index Signature”[key: string]: unknown
attachments?
Section titled “attachments?”
optionalattachments?:object[]
conversation?
Section titled “conversation?”
optionalconversation?:object
conversation.id
Section titled “conversation.id”id:
string
optionalfrom?:object
from.id
Section titled “from.id”id:
string
from.name?
Section titled “from.name?”
optionalname?:string
optionalid?:string
recipient?
Section titled “recipient?”
optionalrecipient?:object
recipient.id
Section titled “recipient.id”id:
string
recipient.name?
Section titled “recipient.name?”
optionalname?:string
optionaltext?:string
timestamp?
Section titled “timestamp?”
optionaltimestamp?:string
type:
"message"|"conversationUpdate"|"typing"
agent:
CardAgentLike
The agent that composes the card.
createRequestContext?
Section titled “createRequestContext?”
optionalcreateRequestContext?:CardContextFactory
Builds the agent’s per-turn request context, so the delivered turn has the same tool reach (Genie and every other user-scoped tool) as a chat turn.
credentials
Section titled “credentials”credentials:
BotCredentials
Bot credentials used to fetch the outbound Connector token.
serviceUrl
Section titled “serviceUrl”serviceUrl:
string
Reply destination, already validated against the inbound token. Passing this
explicitly (rather than reading activity.serviceUrl) keeps the security
decision in the caller, where the token is in scope.
signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Cancels the turn (process shutdown, or a test tearing down).