file_communication_protocol
File: plugins/communication_protocols/file/src/utcp_file/file_communication_protocol.py
class FileCommunicationProtocol (CommunicationProtocol)
Documentation
Communication protocol for file-based UTCP manuals and tools.
Methods:
async register_manual(self, caller: 'UtcpClient', manual_call_template: CallTemplate) -> RegisterManualResult
Register a file manual and return its tools as a UtcpManual.
async deregister_manual(self, caller: 'UtcpClient', manual_call_template: CallTemplate) -> None
Deregister a file manual (no-op).
async call_tool(self, caller: 'UtcpClient', tool_name: str, tool_args: Dict[str, Any], tool_call_template: CallTemplate) -> Any
Call a tool: for file templates, return file content from the configured path.
async call_tool_streaming(self, caller: 'UtcpClient', tool_name: str, tool_args: Dict[str, Any], tool_call_template: CallTemplate) -> AsyncGenerator[Any, None]
Streaming variant: yields the full content as a single chunk.