@hiper2d/ai-agents 0.22.1 → 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.d.mts CHANGED
@@ -372,6 +372,7 @@ declare const LLM_CONSTANTS: {
372
372
  GPT_SOL: string;
373
373
  GPT: string;
374
374
  GPT_MINI: string;
375
+ GEMINI_ARGON: string;
375
376
  GEMINI_PRO: string;
376
377
  GEMINI_FLASH: string;
377
378
  GEMINI_LITE: string;
package/dist/index.d.ts CHANGED
@@ -372,6 +372,7 @@ declare const LLM_CONSTANTS: {
372
372
  GPT_SOL: string;
373
373
  GPT: string;
374
374
  GPT_MINI: string;
375
+ GEMINI_ARGON: string;
375
376
  GEMINI_PRO: string;
376
377
  GEMINI_FLASH: string;
377
378
  GEMINI_LITE: string;
package/dist/index.js CHANGED
@@ -981,6 +981,8 @@ var LLM_CONSTANTS = {
981
981
  GPT_SOL: "gpt-sol",
982
982
  GPT: "gpt",
983
983
  GPT_MINI: "gpt-mini",
984
+ // Gemini 4 Argon sits above Pro; version-free id so a later Argon repoint keeps persisted ids.
985
+ GEMINI_ARGON: "gemini-argon",
984
986
  GEMINI_PRO: "gemini-pro",
985
987
  GEMINI_FLASH: "gemini-flash",
986
988
  GEMINI_LITE: "gemini-lite",
@@ -1138,6 +1140,21 @@ var SupportedAiModels = {
1138
1140
  // 2.5-era thinkingBudget: 1024 (2026-08-06), which HAD been binding — so Flash Lite now
1139
1141
  // thinks noticeably less under its "minimal" default (0.8s/49-token votes vs 4.5s/650
1140
1142
  // budgeted); bump it to 'low' if its output quality visibly drops.
1143
+ // Gemini 4 Argon (added 2026-10-13, id verified against GET /v1beta/models): Google's
1144
+ // flagship reasoning model, 1M in / 32K out. Same thinkingLevel dialect as 3.x — accepts
1145
+ // low|medium|high, rejects 'minimal' (probed). Pinned 'high' like Pro: on a 1.7K-token game
1146
+ // prompt 'medium' thought 0 tokens (3.2s) while 'high' thought 622 (8.1s); the level is a
1147
+ // ceiling, so 'high' leaves the dynamic range open. No `temperature`: Gemini 4 accepts it
1148
+ // but Google deprecated sampling params (see the Pro note). Story-pipeline speed as Game
1149
+ // Master not measured yet — run the host's live story suite before trusting it there.
1150
+ [LLM_CONSTANTS.GEMINI_ARGON]: {
1151
+ displayName: "Gemini 4 Argon",
1152
+ modelApiName: "gemini-4-argon",
1153
+ apiKeyName: API_KEY_CONSTANTS.GOOGLE,
1154
+ hasThinking: true,
1155
+ reasoningEffort: "high",
1156
+ tags: ["expensive"]
1157
+ },
1141
1158
  [LLM_CONSTANTS.GEMINI_PRO]: {
1142
1159
  displayName: "Gemini 3.1 Pro Preview",
1143
1160
  modelApiName: "gemini-3.1-pro-preview",
@@ -1573,6 +1590,15 @@ var MODEL_PRICING = {
1573
1590
  extendedContextThresholdTokens: 1e5
1574
1591
  },
1575
1592
  // Google models
1593
+ [SupportedAiModels[LLM_CONSTANTS.GEMINI_ARGON].modelApiName]: {
1594
+ // Launch pricing (ai.google.dev pricing page, fetched 2026-10-13), one flat tier — no
1595
+ // >200K long-context rows, unlike 3.1 Pro. DOUBLES on 2026-12-01 to $4.00 / $20.00 /
1596
+ // $0.20 — ACTION NEEDED then. Implicit caching only (explicit caching unsupported),
1597
+ // cached input bills at 5% of the input price. Not on Google's free tier or AI Pro plan.
1598
+ inputPrice: 2,
1599
+ outputPrice: 10,
1600
+ cacheHitPrice: 0.1
1601
+ },
1576
1602
  [SupportedAiModels[LLM_CONSTANTS.GEMINI_PRO].modelApiName]: {
1577
1603
  inputPrice: 2,
1578
1604
  outputPrice: 12,
@@ -5504,6 +5530,7 @@ var AgentFactory = class {
5504
5530
  case LLM_CONSTANTS.GPT:
5505
5531
  case LLM_CONSTANTS.GPT_MINI:
5506
5532
  return new Gpt5Agent(name, instruction, model.modelApiName, key, model.temperature, shouldEnableThinking);
5533
+ case LLM_CONSTANTS.GEMINI_ARGON:
5507
5534
  case LLM_CONSTANTS.GEMINI_PRO:
5508
5535
  case LLM_CONSTANTS.GEMINI_FLASH:
5509
5536
  case LLM_CONSTANTS.GEMINI_LITE: