From 0b3cdbec84824707a8f1bba4bb1f9766d854e119 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 8df8e463945ac3b8de8d893009c30f81ca85e968:quixos-instance/interfaces/agent --- .quixos-template-source.json | 4 ++++ interface.qx | 26 ++++++++++++++++++++++++++ quixos.lock | 5 +++++ 3 files changed, 35 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..fbc0461 --- /dev/null +++ b/.quixos-template-source.json @@ -0,0 +1,4 @@ +{ + "monorepoCommit": "8df8e463945ac3b8de8d893009c30f81ca85e968", + "sourcePath": "quixos-instance/interfaces/agent" +} diff --git a/interface.qx b/interface.qx new file mode 100644 index 0000000..f9251e9 --- /dev/null +++ b/interface.qx @@ -0,0 +1,26 @@ +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"; + +import interface EventStream; +import interface AgentContextSubject; +type AgentSubmission = record {text:string;data:optional;profile:optional;response:optional;sourceKind:string;sourceLabel:string;publication:optional;createdAt:string;contexts:list>;related:optional>;retryOf:optional>;root:optional>;causalDepth:uint32;}; +type AgentAdmission = record {accepted:bool;reason:optional;thread:optional>;request:optional>;}; +type AgentData = record {name:string;description:string;enabled:bool;settings:string;}; +type AgentCompletion = record {request:atom-ref;thread:atom-ref;status:string;}; +interface Agent id "interface:org.quixos.agent:agent" revision "interface:org.quixos.agent:agent@1" { + queryable value data id "agent:data" : AgentData {get id "agent:data:get" execution snapshot;} + queryable value instructions id "agent:instructions" : string {get id "agent:instructions:get" execution snapshot;edit id "agent:instructions:edit" execution transaction;} + queryable relation directory id "agent:directory" : exactly-one atom AgentDirectoryObject {resolve id "agent:directory:resolve" execution snapshot;} + queryable relation threads id "agent:threads" : many-unique atom AgentThreadObject {resolve id "agent:threads:resolve" execution snapshot;} + queryable relation completions id "agent:completions" : exactly-one interface EventStream {resolve id "agent:completions:resolve" execution snapshot;} + operation update id "agent:update" : record {name:optional;description:optional;enabled:optional;settings:optional;} -> unit {call id "agent:update:call" execution transaction;} + operation createThread id "agent:create-thread" : record {title:string;kind:string;createdAt:string;contexts:list>;} -> atom-ref {call id "agent:create-thread:call" execution transaction;} + operation request id "agent:request" : AgentSubmission -> AgentAdmission {call id "agent:request:call" execution transaction;} + operation tryRequest id "agent:try-request" : AgentSubmission -> AgentAdmission {call id "agent:try-request:call" execution transaction;} +} + diff --git a/quixos.lock b/quixos.lock new file mode 100644 index 0000000..04c0c92 --- /dev/null +++ b/quixos.lock @@ -0,0 +1,5 @@ +quixos-lock version 1 { + quixos source { repository "https://gitea.internal.quixos.org/quixos/quixos.git"; commit "8df8e463945ac3b8de8d893009c30f81ca85e968"; } + interface EventStream source { repository "https://repos.quixos.org/quixos-studio/interface-event-stream.git"; commit "5d9409557059ca2a3247af080a33516985916f66"; } + interface AgentContextSubject source { repository "https://repos.quixos.org/quixos-studio/interface-agent-context-subject.git"; commit "0a1dd60f7457856bcfa6c8cf580e516d69d59ee7"; } +}