@hiper2d/ai-agents 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -803,6 +803,8 @@ var LLM_CONSTANTS = {
803
803
  GPT_SOL: "gpt-sol",
804
804
  GPT: "gpt",
805
805
  GPT_MINI: "gpt-mini",
806
+ // Gemini 4 Argon sits above Pro; version-free id so a later Argon repoint keeps persisted ids.
807
+ GEMINI_ARGON: "gemini-argon",
806
808
  GEMINI_PRO: "gemini-pro",
807
809
  GEMINI_FLASH: "gemini-flash",
808
810
  GEMINI_LITE: "gemini-lite",
@@ -960,6 +962,21 @@ var SupportedAiModels = {
960
962
  // 2.5-era thinkingBudget: 1024 (2026-08-06), which HAD been binding — so Flash Lite now
961
963
  // thinks noticeably less under its "minimal" default (0.8s/49-token votes vs 4.5s/650
962
964
  // budgeted); bump it to 'low' if its output quality visibly drops.
965
+ // Gemini 4 Argon (added 2026-10-13, id verified against GET /v1beta/models): Google's
966
+ // flagship reasoning model, 1M in / 32K out. Same thinkingLevel dialect as 3.x — accepts
967
+ // low|medium|high, rejects 'minimal' (probed). Pinned 'high' like Pro: on a 1.7K-token game
968
+ // prompt 'medium' thought 0 tokens (3.2s) while 'high' thought 622 (8.1s); the level is a
969
+ // ceiling, so 'high' leaves the dynamic range open. No `temperature`: Gemini 4 accepts it
970
+ // but Google deprecated sampling params (see the Pro note). Story-pipeline speed as Game
971
+ // Master not measured yet — run the host's live story suite before trusting it there.
972
+ [LLM_CONSTANTS.GEMINI_ARGON]: {
973
+ displayName: "Gemini 4 Argon",
974
+ modelApiName: "gemini-4-argon",
975
+ apiKeyName: API_KEY_CONSTANTS.GOOGLE,
976
+ hasThinking: true,
977
+ reasoningEffort: "high",
978
+ tags: ["expensive"]
979
+ },
963
980
  [LLM_CONSTANTS.GEMINI_PRO]: {
964
981
  displayName: "Gemini 3.1 Pro Preview",
965
982
  modelApiName: "gemini-3.1-pro-preview",
@@ -1395,6 +1412,15 @@ var MODEL_PRICING = {
1395
1412
  extendedContextThresholdTokens: 1e5
1396
1413
  },
1397
1414
  // Google models
1415
+ [SupportedAiModels[LLM_CONSTANTS.GEMINI_ARGON].modelApiName]: {
1416
+ // Launch pricing (ai.google.dev pricing page, fetched 2026-10-13), one flat tier — no
1417
+ // >200K long-context rows, unlike 3.1 Pro. DOUBLES on 2026-12-01 to $4.00 / $20.00 /
1418
+ // $0.20 — ACTION NEEDED then. Implicit caching only (explicit caching unsupported),
1419
+ // cached input bills at 5% of the input price. Not on Google's free tier or AI Pro plan.
1420
+ inputPrice: 2,
1421
+ outputPrice: 10,
1422
+ cacheHitPrice: 0.1
1423
+ },
1398
1424
  [SupportedAiModels[LLM_CONSTANTS.GEMINI_PRO].modelApiName]: {
1399
1425
  inputPrice: 2,
1400
1426
  outputPrice: 12,
@@ -5326,6 +5352,7 @@ var AgentFactory = class {
5326
5352
  case LLM_CONSTANTS.GPT:
5327
5353
  case LLM_CONSTANTS.GPT_MINI:
5328
5354
  return new Gpt5Agent(name, instruction, model.modelApiName, key, model.temperature, shouldEnableThinking);
5355
+ case LLM_CONSTANTS.GEMINI_ARGON:
5329
5356
  case LLM_CONSTANTS.GEMINI_PRO:
5330
5357
  case LLM_CONSTANTS.GEMINI_FLASH:
5331
5358
  case LLM_CONSTANTS.GEMINI_LITE: