mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-03 19:47:10 +00:00
feat(spec): add llm() action-backend marker
This commit is contained in:
1 parent
6b0d6cb971
commit
e30ed6f7ed
3 files changed
+14
-1
No files matched your search
@@ -57,10 +57,13 @@ export type ActionDescriptor =
|
||||
// weighted: probabilistic choice over child nodes, scanned ascending.
|
||||
// actions: author callback returning a list to pick uniformly from.
|
||||
// builtin: host-backed leaf identified by a verb.
|
||||
// llm: marker selecting the LLM action backend; inert on the JS picker
|
||||
// (walk returns null), Go reads config.model off globalThis.actions.
|
||||
export type GeneratorNode =
|
||||
| { kind: "weighted"; branches: ReadonlyArray<readonly [number, GeneratorNode]> }
|
||||
| { kind: "actions"; generate: () => ActionDescriptor[] }
|
||||
| { kind: "builtin"; verb: BuiltinVerb };
|
||||
| { kind: "builtin"; verb: BuiltinVerb }
|
||||
| { kind: "llm"; config: { model: string } };
|
||||
|
||||
// Candidate is one host-enumerated target for a builtin verb. The host
|
||||
// resolves geometry (and a native selector) so no element handle crosses into
|
||||
|
||||
Reference in new issue
Block a user