commit 0ba955b3d0798d734a9ae55252a7604b8e78560e Author: Quixos Template Publisher Date: Sat Jan 1 00:00:00 2000 +0000 Export template source from 0335ad9021a0d7e164aee84d2345158c5b62e747:quixos-instance/interfaces/agent-thread diff --git a/.quixos-template-source.json b/.quixos-template-source.json new file mode 100644 index 0000000..ca4d883 --- /dev/null +++ b/.quixos-template-source.json @@ -0,0 +1,4 @@ +{ + "monorepoCommit": "0335ad9021a0d7e164aee84d2345158c5b62e747", + "sourcePath": "quixos-instance/interfaces/agent-thread" +} diff --git a/interface.qx b/interface.qx new file mode 100644 index 0000000..4799fa6 --- /dev/null +++ b/interface.qx @@ -0,0 +1,28 @@ +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 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 ThreadData = record {title:string;kind:string;archived:bool;sequence:uint64;pending:uint32;nextItem:uint64;updatedAt:string;}; +interface AgentThread id "interface:org.quixos.agent:thread" revision "interface:org.quixos.agent:thread@1" { + queryable value data id "agent:thread:data" : ThreadData {get id "agent:thread:data:get" execution snapshot;} + queryable relation agent id "agent:thread:agent" : exactly-one atom AgentObject {resolve id "agent:thread:agent:resolve" execution snapshot;} + queryable relation directory id "agent:thread:directory" : exactly-one atom AgentDirectoryObject {resolve id "agent:thread:directory:resolve" execution snapshot;} + queryable relation active id "agent:thread:active" : optional-one atom AgentRequestObject {resolve id "agent:thread:active:resolve" execution snapshot;} + queryable relation requests id "agent:thread:requests" : many-unique atom AgentRequestObject {resolve id "agent:thread:requests:resolve" execution snapshot;} + queryable relation items id "agent:thread:items" : many-unique atom AgentItemObject {resolve id "agent:thread:items:resolve" execution snapshot;} + queryable relation contexts id "agent:thread:contexts" : many-unique interface AgentContextSubject {resolve id "agent:thread:contexts:resolve" execution snapshot;} + operation send id "agent:thread:send" : AgentSubmission -> atom-ref {call id "agent:thread:send:call" execution transaction;} + operation rename id "agent:thread:rename" : string -> unit {call id "agent:thread:rename:call" execution transaction;} + operation archive id "agent:thread:archive" : bool -> unit {call id "agent:thread:archive:call" execution transaction;} + operation activate id "agent:thread:activate" : atom-ref -> bool {call id "agent:thread:activate:call" execution transaction;} + operation release id "agent:thread:release" : atom-ref -> unit {call id "agent:thread:release:call" execution transaction;} + operation adjustPending id "agent:thread:adjust-pending" : record {delta:int32;updatedAt:string;} -> uint64 {call id "agent:thread:adjust-pending:call" execution transaction;} + operation allocateItem id "agent:thread:allocate-item" : string -> uint64 {call id "agent:thread:allocate-item:call" execution transaction;} +} + diff --git a/quixos.lock b/quixos.lock new file mode 100644 index 0000000..9fd6ab0 --- /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 "0335ad9021a0d7e164aee84d2345158c5b62e747"; } + interface AgentContextSubject source { repository "https://repos.quixos.org/quixos-studio/interface-agent-context-subject.git"; commit "0a1dd60f7457856bcfa6c8cf580e516d69d59ee7"; } +}