resolve • AI Agent SDK

resolve: Resolve a routing token to concrete delivery targets.

resolve

Method

</div>

This is a method of the DeliveryResolverProtocol class in the protocols module.

Resolve a routing token to concrete delivery targets.

Token formats:

  • “origin”: Reply to the chat where the job was created (requires origin)
  • “&lt;platform&gt;”: That platform’s home channel
  • “&lt;platform&gt;:&lt;chat_id&gt;[:&lt;thread_id&gt;]”: Explicit target
  • “all”: Fan-out to every connected platform with a home channel

Signature

python
def resolve(token: str) -> List['DeliveryTarget']

Parameters

ParamField str

Routing token to resolve

Returns

ResponseField List['DeliveryTarget']

List of concrete delivery targets

Used By

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 3274