Type Alias: ResolvedToolEntry
Type Alias: ResolvedToolEntry
type ResolvedToolEntry =
| {
def: AgentToolDefinition;
localName: string;
pluginName: string;
source: "toolkit";
}
| {
def: AgentToolDefinition;
functionTool: FunctionTool;
source: "function";
}
| {
def: AgentToolDefinition;
mcpToolName: string;
source: "mcp";
}
| {
agentName: string;
def: AgentToolDefinition;
source: "subagent";
}
| {
def: AgentToolDefinition;
source: "hosted-supervisor";
spec: SupervisorTool;
};Internal tool-index entry after a tool record has been resolved to a dispatchable form.
Type Declaration
{
def: AgentToolDefinition;
localName: string;
pluginName: string;
source: "toolkit";
}def
def: AgentToolDefinition;localName
localName: string;pluginName
pluginName: string;source
source: "toolkit";{
def: AgentToolDefinition;
functionTool: FunctionTool;
source: "function";
}def
def: AgentToolDefinition;functionTool
functionTool: FunctionTool;source
source: "function";{
def: AgentToolDefinition;
mcpToolName: string;
source: "mcp";
}def
def: AgentToolDefinition;mcpToolName
mcpToolName: string;source
source: "mcp";{
agentName: string;
def: AgentToolDefinition;
source: "subagent";
}agentName
agentName: string;def
def: AgentToolDefinition;source
source: "subagent";{
def: AgentToolDefinition;
source: "hosted-supervisor";
spec: SupervisorTool;
}def
def: AgentToolDefinition;source
source: "hosted-supervisor";Adapter-side hosted tool (executed by the model-host, not by the
Node process). Today: Supervisor API hosted tools (Genie spaces,
UC functions, etc.). The spec is opaque to the agents plugin —
it routes the entry into AgentInput.extensions for the adapter
that declared the matching acceptsExtensions key. def is a
synthetic placeholder kept so the index has a uniform shape; it
is intentionally NOT included in the tools array passed to
adapter.run() (those entries are not callable functions).
spec
spec: SupervisorTool;