mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-21 11:11:03 +02:00
New schema
This commit is contained in:
parent
0b83c08ae4
commit
fe3977b5d1
1 changed files with 25 additions and 0 deletions
25
trustgraph-base/trustgraph/schema/services/tool_service.py
Normal file
25
trustgraph-base/trustgraph/schema/services/tool_service.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue