以幂等方式创建 Goal Experience,或显式控制原生 Goal。原生 Goal 观测跟踪其状态;详细阶段与人工交互使用 Experience 投影。
查看对应 HTTP 契约GoalsResource
classexport class GoalsResourceconstructor
constructor(client: OrbitSpaceClient);cancel
cancel(id: string, body: VersionedRequest<AutonomyServiceCancelGoalData["body"]>, options?: ResourceCallOptions): Promise<AutonomyServiceCancelGoalResponses[200]>;controlExperience
controlExperience(id: string, body: VersionedRequest<AutonomyServiceControlGoalExperienceData["body"]>, options?: ResourceCallOptions): Promise<AutonomyServiceControlGoalExperienceResponses[200]>;create
create(body: AutonomyServiceCreateGoalData["body"], options?: ResourceCallOptions): Promise<AutonomyServiceCreateGoalResponses[200]>;createExperience
createExperience(body: IdempotentRequest<AutonomyServiceCreateGoalExperienceData["body"]>, options?: ResourceCallOptions): Promise<AutonomyServiceCreateGoalExperienceResponses[200]>;evaluations
evaluations(id: string, query?: NonNullable<AutonomyServiceListGoalEvaluationsData["query"]>, options?: ResourceCallOptions): Promise<AutonomyServiceListGoalEvaluationsResponses[200]>;events
events(id: string, options?: WatchOptions): AsyncGenerator<ServerSentEvent<Record<string, unknown>>, any, any>;get
get(id: string, options?: ResourceCallOptions): Promise<AutonomyServiceGetGoalResponses[200]>;getExperience
getExperience(id: string, options?: ResourceCallOptions): Promise<AutonomyServiceGetGoalExperienceResponses[200]>;iterations
iterations(id: string, query?: NonNullable<AutonomyServiceListGoalIterationsData["query"]>, options?: ResourceCallOptions): Promise<AutonomyServiceListGoalIterationsResponses[200]>;list
list(query?: NonNullable<AutonomyServiceListGoalsData["query"]>, options?: ResourceCallOptions): Promise<AutonomyServiceListGoalsResponses[200]>;observe
observe(id: string, options: ExecutionObserveOptions): AsyncGenerator<ExecutionObservation<Goal>>;pause
pause(id: string, body: VersionedRequest<AutonomyServicePauseGoalData["body"]>, options?: ResourceCallOptions): Promise<AutonomyServicePauseGoalResponses[200]>;releases
releases(id: string, query?: NonNullable<AutonomyServiceListGoalReleasesData["query"]>, options?: ResourceCallOptions): Promise<AutonomyServiceListGoalReleasesResponses[200]>;resume
resume(id: string, body: VersionedRequest<AutonomyServiceResumeGoalData["body"]>, options?: ResourceCallOptions): Promise<AutonomyServiceResumeGoalResponses[200]>;start
start(id: string, body: VersionedRequest<AutonomyServiceStartGoalData["body"]>, options?: ResourceCallOptions): Promise<AutonomyServiceStartGoalResponses[200]>;wait
wait(id: string, options: ExecutionObserveOptions): Promise<ExecutionObservation<Goal>>;export type GoalExperienceReference = string | {
goal?: {
id?: string;
};
deep_link?: string;
event_stream_url?: string;
};下载方法索引 JSON ↓ · 来源摘要 5f558e57b94420ef8fc60d9a8274a2ab5b92ac85d23f370a5bac4bc7ad2baae2