Adds Spec Kit-backed Weaver grounding tools for activities, workflow definitions, workflow proposals, runtime instances, incidents, and Studio capability discovery. |
||
|---|---|---|
| .. | ||
| Context | ||
| Endpoints/AI | ||
| Extensions | ||
| Features | ||
| Options | ||
| Permissions | ||
| Services | ||
| ShellFeatures | ||
| Streaming | ||
| Tools | ||
| Elsa.AI.Host.csproj | ||
| FodyWeavers.xml | ||
| README.md | ||
| Usings.cs | ||
Elsa AI Host
Elsa AI Host owns Weaver's provider-neutral server surface: chat orchestration, context resolution, tool registration, proposal governance, audit, and Studio-facing capabilities. Provider SDK types stay outside this module.
Grounding Tools
Built-in grounding tools are registered as IAITool implementations. Read-only tools are enabled by default; proposal tools must be enabled explicitly before a provider can invoke them.
Activity tools:
activities.searchactivities.getDescriptor
Workflow definition tools:
workflows.searchworkflows.getDefinitionworkflows.getDefinitionGraphworkflows.findUsages
Proposal-only tools:
workflows.validateDraftworkflows.proposeCreateworkflows.proposeUpdate
Runtime inspection tools:
instances.searchinstances.getinstances.getExecutionHistoryinstances.getActivityStateincidents.searchincidents.get
The tools read from Elsa server-side sources such as IActivityRegistry, IWorkflowDefinitionStore, and IWorkflowInstanceStore. If a source is not registered, the tool returns an unavailable result and /ai/capabilities reports the disabled reason for Studio.
All tool results are bounded by AIHostOptions.Grounding, redacted before returning to the model or Studio, and audited by the existing AI Host tool invocation path.
Proposal Safety
workflows.proposeCreate and workflows.proposeUpdate write only to IAIProposalStore. They do not persist workflow definitions. Approval and apply remain separate governed actions.