From 5b3c19a33bef57924990012eefeeeef803074e03 Mon Sep 17 00:00:00 2001 From: Quixos Template Publisher Date: Sat, 1 Jan 2000 00:00:00 +0000 Subject: [PATCH] Export template source from 942ab52c66dd5e93dc676191a3159a846c72de5d:quixos-instance/interfaces/agent-question --- .quixos-template-source.json | 4 ++++ interface.qx | 16 ++++++++++++++++ quixos.lock | 4 ++++ 3 files changed, 24 insertions(+) create mode 100644 .quixos-template-source.json create mode 100644 interface.qx create mode 100644 quixos.lock diff --git a/.quixos-template-source.json b/.quixos-template-source.json new file mode 100644 index 0000000..aa603cf --- /dev/null +++ b/.quixos-template-source.json @@ -0,0 +1,4 @@ +{ + "monorepoCommit": "942ab52c66dd5e93dc676191a3159a846c72de5d", + "sourcePath": "quixos-instance/interfaces/agent-question" +} diff --git a/interface.qx b/interface.qx new file mode 100644 index 0000000..9545caa --- /dev/null +++ b/interface.qx @@ -0,0 +1,16 @@ +external atom AgentDirectoryObject id "atom:org.quixos.agent:directory"; +external atom AgentObject id "atom:org.quixos.agent:agent"; +external atom AgentThreadObject id "atom:org.quixos.agent:thread"; +external atom AgentRequestObject id "atom:org.quixos.agent:request"; +external atom AgentItemObject id "atom:org.quixos.agent:item"; +external atom AgentQuestionObject id "atom:org.quixos.agent:question"; +external atom AgentCompletionStreamObject id "atom:org.quixos.agent:completion-stream"; + +type QuestionData = record {key:string;title:string;options:string;status:string;answer:optional;createdAt:string;expiresAt:string;attempt:string;generation:uint32;}; +interface AgentQuestion id "interface:org.quixos.agent:question" revision "interface:org.quixos.agent:question@1" { + queryable value data id "agent:question:data" : QuestionData {get id "agent:question:data:get" execution snapshot;} + queryable relation request id "agent:question:request" : exactly-one atom AgentRequestObject {resolve id "agent:question:request:resolve" execution snapshot;} + operation answer id "agent:question:answer" : record {answer:string;attempt:string;generation:uint32;answeredAt:string;} -> bool {call id "agent:question:answer:call" execution transaction;} + operation cancel id "agent:question:cancel" : unit -> unit {call id "agent:question:cancel:call" execution transaction;} +} + diff --git a/quixos.lock b/quixos.lock new file mode 100644 index 0000000..7852650 --- /dev/null +++ b/quixos.lock @@ -0,0 +1,4 @@ +quixos-lock version 1 { + quixos source { repository "https://gitea.internal.quixos.org/quixos/quixos.git"; commit "942ab52c66dd5e93dc676191a3159a846c72de5d"; } + +}