Files
Pulse/internal/ai/tools/provider_projection.go
rcourtman ee8a24e14a backend and governance: MCP contract, agent capabilities, API, and release-control
Manifest-backed MCP tools, prompts, and resources with surface affordance contracts; agent capability manifest and governance projection; API contract tests and capability route projection; operations-loop and intelligence-funnel telemetry; release-control subsystem documentation, registry, and tooling; licensing and configuration.
2026-06-23 17:26:15 +01:00

27 lines
1.4 KiB
Go

package tools
import "github.com/rcourtman/pulse-go-rewrite/internal/agentcapabilities"
// AssistantProviderTools returns the provider-facing tool declarations for the
// native in-app Assistant surface. It is the executor-owned projection boundary
// that keeps runtime tool availability, registry governance descriptors, and
// Assistant-native interaction tools composed in one place.
func (e *PulseToolExecutor) AssistantProviderTools(opts agentcapabilities.AssistantProviderToolOptions) []agentcapabilities.ProviderTool {
if e == nil {
return agentcapabilities.ProjectPulseAssistantProviderTools(agentcapabilities.CanonicalManifest(), nil, nil, opts)
}
return agentcapabilities.ProjectPulseAssistantProviderTools(agentcapabilities.CanonicalManifest(), e.ListTools(), e.ListToolGovernance(), opts)
}
// AssistantSurfaceToolContract returns the native Assistant surface summary
// over the shared Pulse Intelligence Core. The executor owns the runtime
// registry and availability rules; agentcapabilities owns the surface projection
// contract shared with MCP and future external-agent adapters.
func (e *PulseToolExecutor) AssistantSurfaceToolContract(opts agentcapabilities.AssistantProviderToolOptions) agentcapabilities.SurfaceToolContract {
contract, _ := agentcapabilities.ProjectPulseAssistantSurfaceToolContract(
agentcapabilities.CanonicalManifest().SurfaceContract,
e.AssistantProviderTools(opts),
)
return contract
}