openagents_sdk::continuations
Move to a linked part without creating a second editable copy of the source.
| Item | What it does |
|---|---|
claim fn | Continues `source` in the claimed part, using the chat history the service already holds. |
destination fn | The part that continues `source`, if one does. |
transfer fn | Choose a linked destination. |
claim
pub async fn claim(
client: &Client,
session: &Session,
source: &ChatRef,
claim: &Claim,
cancel: &CancellationToken,
) -> Result<Continued, Error>
Continues source in the claimed part, using the chat history the service
already holds.
destination
pub async fn destination(
client: &Client,
session: &Session,
source: &ChatRef,
cancel: &CancellationToken,
) -> Result<Option<PartRef>, Error>
The part that continues source, if one does.
transfer
pub async fn transfer(
client: &Client,
session: &Session,
source: &ChatRef,
claim: &TransferClaim,
cancel: &CancellationToken,
) -> Result<Continued, Error>
Choose a linked destination. Computer hosts supply a screened seed; saved-chat sources use the history already held by the service.
Re-exported from other crates
Claimfromchat_homeContinuedfromchat_homeHomefromchat_homeLinksfromchat_homePartReffromchat_homeREQUEST_OPTIONfromchat_homeRolefromchat_homeSeedfromchat_homeSourcefromchat_homeTransferClaimfromchat_home