Skip to content

openagents_sdk::continuations

Move to a linked part without creating a second editable copy of the source.

ItemWhat it does
claim fnContinues `source` in the claimed part, using the chat history the service already holds.
destination fnThe part that continues `source`, if one does.
transfer fnChoose 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.

Calls GET /v1/threads/{id}

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.

Calls POST /v1/threads/{id}/continue

Re-exported from other crates

  • Claim from chat_home
  • Continued from chat_home
  • Home from chat_home
  • Links from chat_home
  • PartRef from chat_home
  • REQUEST_OPTION from chat_home
  • Role from chat_home
  • Seed from chat_home
  • Source from chat_home
  • TransferClaim from chat_home