Schema structure refactor (#451)

* Write schema refactor spec

* Implemented schema refactor spec
This commit is contained in:
cybermaggedon 2025-08-04 21:42:57 +01:00 committed by GitHub
parent f4733021c5
commit 5de56c5dbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 370 additions and 223 deletions

View file

@ -0,0 +1,30 @@
from pulsar.schema import Record, String, Array, Map
from ..core.topic import topic
from ..core.primitives import Error
############################################################################
# Prompt services, abstract the prompt generation
class AgentStep(Record):
thought = String()
action = String()
arguments = Map(String())
observation = String()
class AgentRequest(Record):
question = String()
plan = String()
state = String()
history = Array(AgentStep())
class AgentResponse(Record):
answer = String()
error = Error()
thought = String()
observation = String()
############################################################################