Agent schema

This commit is contained in:
Cyber MacGeddon 2024-11-02 16:04:20 +00:00
parent ae8661fe2e
commit 4b102facb1

View file

@ -0,0 +1,35 @@
from pulsar.schema import Record, Bytes, String, Boolean, Array, Map, Integer
from . topic import topic
from . types import Error, RowSchema
############################################################################
# Prompt services, abstract the prompt generation
class AgentStep(Record):
thought = String()
action = String()
action_input = String()
observation = String()
class AgentRequest(Record):
question = String()
plan = String()
history = Array(AgentStep())
class AgentResponse(Record):
answer = String()
error = String()
thought = String()
agent_request_queue = topic(
'agent', kind='non-persistent', namespace='request'
)
agent_response_queue = topic(
'agent', kind='non-persistent', namespace='response'
)
############################################################################