OrbitSpaceDevelopers

TYPESCRIPT / JAVASCRIPT

Agent 服务调用

公共包类型声明自动生成的方法参考 · v0.3.0

调用已授权的 Agent 服务并跟踪应用侧投影。业务任务映射由应用保存;execution_id 不授予内部 Task 的访问权限。

查看对应 HTTP 契约
export class InvocationsResource

constructor

constructor(client: OrbitSpaceClient);

cancel

cancel(id: string, body: VersionedRequest<ApplicationServiceCancelInvocationData["body"]>, options?: ResourceCallOptions): Promise<ApplicationServiceCancelInvocationResponses[200]>;

create

create(id: string, body: IdempotentRequest<ApplicationServiceCreateInvocationData["body"]>, options?: ResourceCallOptions): Promise<ApplicationServiceCreateInvocationResponses[200]>;

events

events(id: string, options?: WatchOptions): AsyncGenerator<ServerSentEvent<Record<string, unknown>>, any, any>;

get

get(id: string, options?: ResourceCallOptions): Promise<ApplicationServiceGetInvocationResponses[200]>;

list

list(query?: NonNullable<ApplicationServiceListInvocationsData["query"]>, options?: ResourceCallOptions): Promise<ApplicationServiceListInvocationsResponses[200]>;

observe

observe(id: string, options: ExecutionObserveOptions): AsyncGenerator<ExecutionObservation<Invocation>>;

retry

retry(id: string, body: VersionedRequest<ApplicationServiceRetryInvocationData["body"]>, options?: ResourceCallOptions): Promise<ApplicationServiceRetryInvocationResponses[200]>;

wait

wait(id: string, options: ExecutionObserveOptions): Promise<ExecutionObservation<Invocation>>;

下载方法索引 JSON ↓ · 来源摘要 5f558e57b94420ef8fc60d9a8274a2ab5b92ac85d23f370a5bac4bc7ad2baae2