1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Optional `ToolInvokePort` family — wire-adjacent invoke request/response
//! types and the async port contract for injecting remote tool invocation.
//!
//! The family is standalone: it is NOT folded into `BaselinePorts`, and no
//! `ToolsPort` / `ToolsAdapter` composed alias exists (capability gating is
//! per-tool — the capability string itself — not per-composed-type).
//!
//! Purity: the library stays I/O-free; port methods return awaitable results
//! (Send futures) and the library only awaits injected ports. The port itself
//! does NOT re-validate request arguments — callers run the structural
//! argument gate ([`crate::validate_tool_arguments`]) before invoking.
use crateSpokeResult;
use async_trait;
use Value;
/// Request to invoke a remote tool by its `tools.<ns>.<tool_id>` capability id.
/// Successful tool invocation result — an opaque JSON value.
/// Optional port family for invoking remote tools by capability id.
///
/// The structural argument gate is a caller-side step
/// ([`crate::validate_tool_arguments`]); the port itself does not
/// re-validate.