SkillPorts class

Container for the ports required by SkillRuntime and friends.

llm and mcp are the minimum required capabilities. The remaining ports are optional so hosts can construct a runtime with only the capabilities they need. See REDESIGN-PLAN §3.4 Open Question 7 for the rationale behind the flat (versus composite) shape.

Constructors

SkillPorts({required LlmPort llm, required McpPort mcp, FactsPort? facts, ClaimsPort? claims, RunsPort? runs, ContextBundlePort? contextBundle, RetrievalPort? retrieval, AssetPort? asset})
const
SkillPorts.stub()
Test-only stub factory that wires every port to its in-memory stub.
factory

Properties

asset AssetPort?
Binary asset retrieval port (optional).
final
claims ClaimsPort?
Claims CRUD and validation port (optional).
final
contextBundle ContextBundlePort?
Context bundle assembly port (optional).
final
facts FactsPort?
Facts CRUD port (optional).
final
hashCode int
The hash code for this object.
no setterinherited
llm LlmPort
LLM invocation port (required).
final
mcp McpPort
MCP tool/resource port (required).
final
retrieval RetrievalPort?
Knowledge retrieval (RAG) port (optional).
final
runs RunsPort?
Run record persistence port (optional).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({LlmPort? llm, McpPort? mcp, FactsPort? facts, ClaimsPort? claims, RunsPort? runs, ContextBundlePort? contextBundle, RetrievalPort? retrieval, AssetPort? asset}) SkillPorts
Return a copy with the supplied fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited