agents
Version:
A home for your AI agents
17 lines (16 loc) • 753 B
TypeScript
//#region src/socket-address.d.ts
/**
* Set by `useAgent` on the socket it returns: `true` while the hook's options
* address a different agent than the socket it is still holding.
* `usePartySocket` replaces the socket in an effect, so for at least one
* render after `name` (or the host, path, or sub-agent chain) changes the
* returned socket still points at the previous agent, with the previous
* credentials in its URL.
*
* A registered symbol, so a separately bundled `useAgentChat` still sees it.
*/
declare const SOCKET_ADDRESS_PENDING: unique symbol;
declare function isSocketAddressPending(socket: object): boolean;
//#endregion
export { SOCKET_ADDRESS_PENDING, isSocketAddressPending };
//# sourceMappingURL=socket-address.d.ts.map