Add FTS lookup for seeded Civitai Krea2 prompt examples.
Index Assistent/civitai-examples.jsonl without embeddings and expose AssistentLookupExamples plus ask:examples hop for remix references. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+5
-1
@@ -236,7 +236,7 @@ public partial class SwarmAssistentExtension
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>Server tool hops are ask-only: settings dump or truncated inventory.</summary>
|
||||
/// <summary>Server tool hops: settings dump, inventory, or Civitai example FTS.</summary>
|
||||
static string NextToolHop(JObject patch, HashSet<string> skip = null)
|
||||
{
|
||||
if (patch is null)
|
||||
@@ -252,6 +252,10 @@ public partial class SwarmAssistentExtension
|
||||
{
|
||||
return "ask_inventory";
|
||||
}
|
||||
if ((AskContains(patch, "examples") || ActionsContain(patch, "lookup_examples")) && !Skip("ask_examples"))
|
||||
{
|
||||
return "ask_examples";
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user