/** * Project-wide constants. Anything that's a "magic value" used in more * than one file (or that callers need to be able to recognize / override) * lives here, so the canonical value is searchable and there's only one * place to update. */ /** * Default OpenAI embedding model used by the memory layer when neither * the `memory.embeddings.model` config nor a per-call override sets one. * Picked because it's the cheapest current OpenAI embedding model and * is what `smoltalk.embed` resolves to for OpenAI-style calls. */ export declare const DEFAULT_EMBEDDING_MODEL = "text-embedding-3-small"; /** * Default image-generation model. Provider is auto-resolved from the name by * smoltalk (gpt-image-1 → openai, per smoltalk's imageModels registry), the * same way chat models resolve. Used when a generateImage() call sets no model. */ export declare const DEFAULT_IMAGE_MODEL = "gpt-image-1"; /** * Fixed USD cost the DeterministicClient reports per generated image, so tests * can assert cost accrual / guard trips without a real provider. Shared by the * deterministic client and the image-generation e2e assertion. */ export declare const DETERMINISTIC_IMAGE_COST = 0.04; /** * Default cloud speech-to-text model. Provider is auto-resolved from the name by * smoltalk (whisper-1 → openai). Used when `std::speech.transcribe` sets no model. * The public `.agency` signature is the single owner of this default; this * constant exists only so callers into the runtime helper have one named value. */ export declare const DEFAULT_TRANSCRIBE_MODEL = "whisper-1"; /** * Default cloud text-to-speech model + voice. Provider auto-resolves from the * model name (tts-1 → openai). Used when `std::speech.speak` sets no model/voice. * As with the transcribe default, the public `.agency` signature owns these; the * constants just name the value in one place. */ export declare const DEFAULT_SPEECH_MODEL = "tts-1"; export declare const DEFAULT_SPEECH_VOICE = "alloy"; /** * Fixed values the DeterministicClient reports for transcribe()/speak(), so * tests can assert cost accrual / guard trips / byte round-trips without a real * provider. Mirrors DETERMINISTIC_IMAGE_COST. */ export declare const DETERMINISTIC_TRANSCRIPT = "deterministic transcript"; export declare const DETERMINISTIC_TRANSCRIBE_COST = 0.006; export declare const DETERMINISTIC_SPEECH_COST = 0.015; /** Recognizable fixed audio bytes ("AGENCY") the DeterministicClient returns * from speak(), so a test can assert the exact bytes round-trip to the output * file. */ export declare const DETERMINISTIC_SPEECH_BYTES: readonly number[]; /** * Default token threshold for triggering memory compaction when the * caller does not set `memory.compaction.threshold` in agency.json. * Compaction is expensive (LLM call) — this default keeps it from * firing on small/medium threads while still bounding very long ones. */ export declare const MEMORY_COMPACTION_DEFAULT_THRESHOLD = 50000; /** * Set by `agency run --policy/--approve/--reject` on the spawned child: the * resolved `Policy` as JSON. Read by the runtime to install the root policy * handler (`installRunPolicyHandler`). */ export declare const AGENCY_RUN_POLICY = "AGENCY_RUN_POLICY"; /** * Set to `AGENCY_RUN_POLICY_INTERACTIVE_ON` by `agency run --interactive`. * When present, the root policy handler prompts on effects the policy doesn't * cover instead of rejecting them. */ export declare const AGENCY_RUN_POLICY_INTERACTIVE = "AGENCY_RUN_POLICY_INTERACTIVE"; /** The truthy sentinel value for `AGENCY_RUN_POLICY_INTERACTIVE`. */ export declare const AGENCY_RUN_POLICY_INTERACTIVE_ON = "1"; /** Env vars carrying `agency run`/`agency agent` --max-cost / --max-time to * the spawned child, which installs a root guard from them. Cleared then set * by the CLI, exactly like AGENCY_RUN_POLICY. Cost is dollars; time is * milliseconds (the CLI parses duration strings before setting it). */ export declare const AGENCY_MAX_COST = "AGENCY_MAX_COST"; export declare const AGENCY_MAX_TIME = "AGENCY_MAX_TIME"; /** Resume request carried from `agency resume` to the generated child entry. */ export declare const AGENCY_RESUME_FILE = "AGENCY_RESUME_FILE"; export declare const AGENCY_RESUME_OVERRIDES = "AGENCY_RESUME_OVERRIDES"; export declare const AGENCY_RESUME_FORCE = "AGENCY_RESUME_FORCE"; /** The edits of `agency resume --edit`, as a JSON array. */ export declare const AGENCY_RESUME_EDITS = "AGENCY_RESUME_EDITS"; /** The node `agency run file.agency:node` asks the generated child entry to * start. Unset means `main`. */ export declare const AGENCY_ENTRY_NODE = "AGENCY_ENTRY_NODE"; /** Process exit code for a command line the program cannot act on, such as * `agency run file.agency:node` naming a node the file does not have. */ export declare const EXIT_CODE_USAGE_ERROR = 2; /** Process exit code when a top-level cost/time budget is exceeded. Distinct * from 1 (generic failure) and 2 (usage error). */ export declare const EXIT_CODE_BUDGET_EXCEEDED = 3; /** * The synthetic function pattern lowering emits for an object rest binder: * `{ a, ...rest }` becomes `__objectRest(source, ["a"])`. The TypeScript * builder compiles the call away, so it never reaches runtime. * * Shared because three passes have to agree on it and the typechecker runs * between the two that used to hold it as a literal: the lowerer emits it, the * builder matches it, and the undefined-function check has to know it is not a * user call. When only two of the three knew the name, object rest in any * pattern reported "Function '__objectRest' is not defined". */ export declare const OBJECT_REST_FN = "__objectRest"; /** * Hard cap on the bytes of a single AWS S3 object body, in both directions: * downloads are read up to this limit and uploads are checked against it before * signing. It bounds the in-memory payload, so it is a fixed safety limit, not a * user-tunable option. (A 10 MiB binary object is ~13.3 MiB of base64.) */ export declare const AWS_OBJECT_BYTE_LIMIT: number;