Class AgentProtocolController
java.lang.Object
io.agentscope.extensions.agentprotocol.AgentProtocolController
Internal AgentScope task protocol (
/tasks/...).-
Constructor Summary
ConstructorsConstructorDescriptionAgentProtocolController(AgentProtocolTaskStore store, AgentProtocolProperties properties) -
Method Summary
-
Constructor Details
-
AgentProtocolController
-
AgentProtocolController
-
-
Method Details
-
submit
-
get
-
waitFor
@GetMapping(value="/tasks/{taskId}/wait", produces="application/json") public Map<String,Object> waitFor(@PathVariable("taskId") String taskId, @RequestParam(name="timeout_seconds",defaultValue="7200") long timeoutSeconds) throws Exception Blocks until the task completes.timeout_secondsdefaults to 7200 (2 hours).- Throws:
Exception
-
cancel
-
events
@GetMapping(value="/tasks/{taskId}/events", produces="text/event-stream") public reactor.core.publisher.Flux<org.springframework.http.codec.ServerSentEvent<String>> events(@PathVariable("taskId") String taskId, @RequestParam(name="from_seq",required=false) Long fromSeq, @RequestHeader(name="Last-Event-ID",required=false) String lastEventId) SSE event stream for a task. Supportsfrom_seqquery param andLast-Event-IDheader for reconnect. -
resume
-