Static FindFind agents similar to a specific agent.
Vector service containing agent embeddings
The ID of the agent to find similar agents to
Maximum number of results to return (default: 5)
Minimum similarity score 0-1 (default: 0.5)
Array of matching agents (excludes the source agent)
Error if agent not found in embeddings
Static FindFind agents similar to a given task description.
Vector service containing agent embeddings
The task description to match against agent 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 agents sorted by similarity score (highest first)
Error if embedding generation fails
Static GenerateGenerate embeddings for agents using provided embedding function. Called by AIEngine during AdditionalLoading.
Array of agents (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 agents.
Vector service containing agent embeddings
First agent ID
Second agent ID
Similarity score (0-1)
Error if either agent is not found
Private Static create
Utility service for agent embedding operations. Uses agent data already loaded by AIEngine - no separate initialization needed. All methods are static - no instance state required.
Example