Static FindFind actions similar to a specific action.
Vector service containing action embeddings
The ID of the action to find similar actions to
Maximum number of results to return (default: 5)
Minimum similarity score 0-1 (default: 0.5)
Array of matching actions (excludes the source action)
Error if action not found in embeddings
Static FindFind actions similar to a given task description.
Vector service containing action embeddings
The task description to match against action capabilities
Function to generate embeddings (from AIEngine)
Maximum number of results to return (default: 5)
Minimum similarity score 0-1 (default: 0.5)
Array of matching actions sorted by similarity score (highest first)
Error if embedding generation fails
Static GenerateGenerate embeddings for actions using provided embedding function. Called by AIEngine during AdditionalLoading.
Array of actions (already loaded by AIEngine)
Function to generate embeddings (from AIEngine)
Vector entries ready for loading into vector service
Static GetGet the similarity score between two specific actions.
Vector service containing action embeddings
First action ID
Second action ID
Similarity score (0-1)
Error if either action is not found
Private Static createPrivate Create the embedding text from action properties. Combines name and description with proper weighting.
Utility service for action embedding operations. Uses action data already loaded by AIEngine - no separate initialization needed. All methods are static - no instance state required.
Follows the same pattern as AgentEmbeddingService for consistency.
Example