Adds Spec Kit-backed Weaver grounding tools for activities, workflow definitions, workflow proposals, runtime instances, incidents, and Studio capability discovery.
2 KiB
2 KiB
Quickstart: Weaver Grounding Tools
Goal
Validate that Weaver can answer questions and create proposals grounded in installed Elsa data without direct database or provider SDK exposure.
Setup
- Start an Elsa Server with AI Host and Copilot enabled.
- Ensure several activities are installed, including at least one trigger activity and one action activity.
- Create or seed:
- one published workflow definition,
- one workflow using a custom or versioned activity,
- one failed workflow instance with an incident.
- Configure durable proposal and audit storage if validating proposal lifecycle.
Manual Validation
- Request
GET /ai/capabilities. - Verify grounding capabilities advertise activity, workflow, proposal, and runtime tool families.
- Request
GET /ai/tools. - Verify these tools are available for an authorized workflow author:
activities.searchactivities.getDescriptorworkflows.searchworkflows.getDefinitionworkflows.validateDraftworkflows.proposeCreateworkflows.proposeUpdateinstances.searchinstances.getincidents.search
- Ask Weaver: "What activities can start a workflow from an HTTP request?"
- Verify the answer references installed activities only.
- Ask Weaver: "Create a workflow that starts on HTTP POST and sends an email."
- Verify Weaver searches activities, validates the draft, and creates a proposal instead of saving a workflow directly.
- Ask Weaver to explain a seeded workflow definition.
- Verify the answer includes real triggers, activities, inputs, outputs, and graph structure.
- Ask Weaver why a seeded failed instance failed.
- Verify the answer references the failed activity, incident message, timeline, and redacted state.
Targeted Test Commands
dotnet test test/unit/Elsa.AI.Host.UnitTests/Elsa.AI.Host.UnitTests.csproj
dotnet test test/integration/Elsa.AI.IntegrationTests/Elsa.AI.IntegrationTests.csproj
dotnet build Elsa.sln -m:1