utcp_socket 0.2.0
utcp_socket: ^0.2.0 copied to clipboard
TCP and UDP transports for the Dart UTCP client: let LLM agents discover and call tools over raw sockets.
0.2.0 #
- Breaking: a
textrequest without a template writes non-string arguments as Python'sstr()does instead of as JSON, matching the Python SDK:{n: 1, flag: true}now sends1 Trueinstead of1 true, andnulland lists becomeNoneand['a', 1]. - Delimiters accept
\N{name}escapes for the names and aliases of Basic Latin, Latin-1 Supplement, General Punctuation and U+FEFF (such as\N{NUL}or\N{RECORD SEPARATOR}); other names fail when the template is parsed. response_byte_formataccepts Python's encoding names and aliases, such aslatin-1,utf-16-le,cp1252,usandiso-ir-100, ignoring case and punctuation. An unsupported name fails when the template is parsed instead of after the request is sent. An unsupported name fails when the template is parsed instead of after the request is sent.max_response_sizeapplies only tostreamframing, as in the Python SDK. Length-prefix, delimiter and fixed-length responses are capped by the newTcpCommunicationProtocol(maxFrameBytes: ...), 10 MiB by default.
0.1.1 #
- Docs: package cross-links, badges and platform notes.
0.1.0 #
tcptransport with length-prefix, delimiter, fixed-length and stream framing.udptransport with multi-datagram responses and fire-and-forget requests.- JSON or templated text requests, and text or raw-bytes responses.
- Manual discovery over both transports; a remote manual may not point tools at loopback.
max_response_sizealso limits delimiter frames whose delimiter is found and fixed-length frames.TcpCallTemplateandUdpCallTemplatelist their address inendpoints, so loopback socket tools are rejected in remote manuals discovered over any transport.