docs cleanup
This commit is contained in:
@@ -12,6 +12,8 @@ systems.
|
|||||||
## Core Model
|
## Core Model
|
||||||
|
|
||||||
A capability source is a named provider of one or more capability kinds.
|
A capability source is a named provider of one or more capability kinds.
|
||||||
|
The domain model lives in `wf_platform.sources`; `wf_mcp` projects MCP-backed
|
||||||
|
connections into that model rather than owning the model itself.
|
||||||
|
|
||||||
```text
|
```text
|
||||||
CapabilitySource
|
CapabilitySource
|
||||||
@@ -187,7 +189,7 @@ control APIs, not ad hoc tool functions copied across broker and proxy modes.
|
|||||||
|
|
||||||
The code now has the first capability-source layer in place.
|
The code now has the first capability-source layer in place.
|
||||||
|
|
||||||
- `CapabilitySource` owns source metadata, visibility, permissions, and
|
- `wf_platform.CapabilitySource` owns source metadata, visibility, permissions, and
|
||||||
capability buckets.
|
capability buckets.
|
||||||
- `WfMcpService.capability_sources` is the canonical in-memory registry.
|
- `WfMcpService.capability_sources` is the canonical in-memory registry.
|
||||||
- Planner node lookup reads `CapabilitySource.capabilities.node_specs`
|
- Planner node lookup reads `CapabilitySource.capabilities.node_specs`
|
||||||
|
|||||||
@@ -277,8 +277,8 @@ Examples:
|
|||||||
|
|
||||||
Today:
|
Today:
|
||||||
|
|
||||||
- `CapabilitySource` already owns buckets for tools, node specs, prompts, and
|
- `wf_platform.CapabilitySource` already owns buckets for tools, node specs,
|
||||||
resources
|
prompts, and resources
|
||||||
- connection sources represent upstream MCP snapshots
|
- connection sources represent upstream MCP snapshots
|
||||||
- `wf.std` owns local reusable workflow node specs and reducers
|
- `wf.std` owns local reusable workflow node specs and reducers
|
||||||
- `wf.mcp` owns workflow-facing MCP runtime helpers
|
- `wf.mcp` owns workflow-facing MCP runtime helpers
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
from __future__ import annotations
|
|
||||||
@@ -8,6 +8,7 @@ from wf_authoring import NodeSpec
|
|||||||
from wf_platform import CapabilitySource
|
from wf_platform import CapabilitySource
|
||||||
from wf_mcp.connections import qualify_node_name
|
from wf_mcp.connections import qualify_node_name
|
||||||
|
|
||||||
|
|
||||||
def qualify_spec(connection_id: str, spec: NodeSpec[Any, Any]) -> NodeSpec[Any, Any]:
|
def qualify_spec(connection_id: str, spec: NodeSpec[Any, Any]) -> NodeSpec[Any, Any]:
|
||||||
"""Return a copy of a spec with its node name scoped to a connection."""
|
"""Return a copy of a spec with its node name scoped to a connection."""
|
||||||
return NodeSpec(
|
return NodeSpec(
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ from wf_authoring import AsyncRegistryHandler, NodeSpec, build_async_registry
|
|||||||
from wf_core.runtime.ops.merges import ReducerDefinition
|
from wf_core.runtime.ops.merges import ReducerDefinition
|
||||||
from wf_platform import CapabilitySource
|
from wf_platform import CapabilitySource
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, slots=True)
|
@dataclass(frozen=True, slots=True)
|
||||||
class RuntimeDependencies:
|
class RuntimeDependencies:
|
||||||
"""Executable dependencies resolved for one workflow run."""
|
"""Executable dependencies resolved for one workflow run."""
|
||||||
|
|||||||
Reference in New Issue
Block a user