mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
docs(folio): add llm action-backend example spec
This commit is contained in:
1 parent
da4a6f1d9f
commit
db4113ce37
1 file changed
+18
@@ -0,0 +1,18 @@
|
||||
// LLM action-backend variant of spec.ts.
|
||||
//
|
||||
// The properties and the login `setup` are reused verbatim; only the action
|
||||
// generator changes. Instead of the seeded fuzzer drawing a random candidate,
|
||||
// `llm({ model })` hands selection to an OpenRouter vision model: each step it
|
||||
// sees the screenshot plus the candidate list the system already enumerates and
|
||||
// returns which candidate to act on. The candidate set, the typed input values,
|
||||
// action execution, and the trace are all identical to the seeded run.
|
||||
//
|
||||
// Requirements:
|
||||
// - OPENROUTER_API_KEY in the environment.
|
||||
// - A model that supports image input AND strict json_schema structured
|
||||
// outputs (e.g. "openai/gpt-4o"). A model lacking either fails clearly.
|
||||
import { llm } from "@sanderling/spec";
|
||||
|
||||
export { properties, setup } from "./spec";
|
||||
|
||||
export const actionsRoot = llm({ model: "openai/gpt-4o" });
|
||||
Reference in new issue
Block a user