Action that finds the best-matching actions for a given task using embedding-based semantic search.

This action uses local embeddings to perform fast similarity search across all available actions, returning the most relevant actions based on their descriptions and capabilities.

Example

// Find actions for a web search task
await runAction({
ActionName: 'Find Candidate Actions',
Params: [{
Name: 'TaskDescription',
Value: 'Search the internet for information on a topic'
}, {
Name: 'MaxResults',
Value: 5
}, {
Name: 'MinimumSimilarityScore',
Value: 0.6
}]
});

Hierarchy (view full)

Constructors

Methods

  • Executes the action with the provided parameters.

    Parameters

    • params: RunActionParams<any>

      The action execution parameters including context

    Returns Promise<ActionResultSimple>

    Promise resolving to the action result