Run asynchronous object controllers from accepted graph jobs
This commit is contained in:
@@ -8,4 +8,15 @@ package ControllerRuntime id "async:controller-runtime" revision "async:controll
|
||||
interface document id "async:controller:document" : DocumentData using [content.get, summary.set];
|
||||
interface provider id "async:controller:provider" : Summarizer using [summarize.call];
|
||||
};
|
||||
operation finish id "async:controller:finish"
|
||||
: record { operationId: string; summary: record { text: string; basedOn: string; }; } -> unit
|
||||
mode call execution transaction targets [server] receiver atom Document requires {
|
||||
state job id "async:finish:job" : optional<record { operationId: string; }> [read, write];
|
||||
state summary id "async:finish:summary" : record { text: string; basedOn: string; } [write];
|
||||
};
|
||||
operation runPending id "async:controller:run-pending" : optional<record { operationId: string; }> -> unit
|
||||
mode call execution remote receiver atom Document requires {
|
||||
interface document id "async:pending:document" : DocumentData using [content.get, recordSummary.call];
|
||||
interface provider id "async:pending:provider" : Summarizer using [summarize.call];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user