New schema

This commit is contained in:
Cyber MacGeddon 2026-03-04 13:34:53 +00:00
parent 0b83c08ae4
commit fe3977b5d1

View file

@ -0,0 +1,25 @@
from dataclasses import dataclass
from ..core.primitives import Error
@dataclass
class ToolServiceRequest:
"""Request to a dynamically configured tool service."""
# User context for multi-tenancy
user: str = ""
# Config values (collection, etc.) as JSON
config: str = ""
# Arguments from LLM as JSON
arguments: str = ""
@dataclass
class ToolServiceResponse:
"""Response from a tool service."""
error: Error | None = None
# Response text (the observation)
response: str = ""
# End of stream marker for streaming responses
end_of_stream: bool = False