@oh-my-pi/pi-agent-core 16.2.5 → 16.2.7

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.
@@ -1,4 +1,4 @@
1
- import type { ImageContent, MessageAttribution, ServiceTier, TextContent } from "@oh-my-pi/pi-ai";
1
+ import type { ImageContent, MessageAttribution, ServiceTierByFamily, TextContent } from "@oh-my-pi/pi-ai";
2
2
  import type { AgentMessage } from "../types";
3
3
  export interface SessionEntryBase {
4
4
  type: string;
@@ -23,7 +23,7 @@ export interface ModelChangeEntry extends SessionEntryBase {
23
23
  }
24
24
  export interface ServiceTierChangeEntry extends SessionEntryBase {
25
25
  type: "service_tier_change";
26
- serviceTier: ServiceTier | null;
26
+ serviceTier: ServiceTierByFamily | null;
27
27
  }
28
28
  export interface CompactionEntry<T = unknown> extends SessionEntryBase {
29
29
  type: "compaction";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-agent-core",
4
- "version": "16.2.5",
4
+ "version": "16.2.7",
5
5
  "description": "General-purpose agent with transport abstraction, state management, and attachment support",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -35,12 +35,12 @@
35
35
  "fmt": "biome format --write ."
36
36
  },
37
37
  "dependencies": {
38
- "@oh-my-pi/pi-ai": "16.2.5",
39
- "@oh-my-pi/pi-catalog": "16.2.5",
40
- "@oh-my-pi/pi-natives": "16.2.5",
41
- "@oh-my-pi/pi-utils": "16.2.5",
42
- "@oh-my-pi/pi-wire": "16.2.5",
43
- "@oh-my-pi/snapcompact": "16.2.5",
38
+ "@oh-my-pi/pi-ai": "16.2.7",
39
+ "@oh-my-pi/pi-catalog": "16.2.7",
40
+ "@oh-my-pi/pi-natives": "16.2.7",
41
+ "@oh-my-pi/pi-utils": "16.2.7",
42
+ "@oh-my-pi/pi-wire": "16.2.7",
43
+ "@oh-my-pi/snapcompact": "16.2.7",
44
44
  "@opentelemetry/api": "^1.9.1"
45
45
  },
46
46
  "devDependencies": {
@@ -1,4 +1,4 @@
1
- import type { ImageContent, MessageAttribution, ServiceTier, TextContent } from "@oh-my-pi/pi-ai";
1
+ import type { ImageContent, MessageAttribution, ServiceTierByFamily, TextContent } from "@oh-my-pi/pi-ai";
2
2
  import type { AgentMessage } from "../types";
3
3
 
4
4
  export interface SessionEntryBase {
@@ -28,7 +28,7 @@ export interface ModelChangeEntry extends SessionEntryBase {
28
28
 
29
29
  export interface ServiceTierChangeEntry extends SessionEntryBase {
30
30
  type: "service_tier_change";
31
- serviceTier: ServiceTier | null;
31
+ serviceTier: ServiceTierByFamily | null;
32
32
  }
33
33
 
34
34
  export interface CompactionEntry<T = unknown> extends SessionEntryBase {
package/src/telemetry.ts CHANGED
@@ -30,7 +30,6 @@ import {
30
30
  completeSimple,
31
31
  type Message,
32
32
  type Model,
33
- resolveServiceTier,
34
33
  type ServiceTier,
35
34
  type SimpleStreamOptions,
36
35
  type StopReason,
@@ -752,8 +751,7 @@ function buildChatRequestAttributes(stepNumber: number, request: ChatRequestSnap
752
751
  attrs[GenAIAttr.RequestStopSequences] = [...request.stopSequences];
753
752
  }
754
753
  if (request.serviceTier && shouldSendServiceTier(request.serviceTier, provider)) {
755
- const resolved = resolveServiceTier(request.serviceTier, provider);
756
- if (resolved) attrs[OpenAIAttr.RequestServiceTier] = resolved;
754
+ attrs[OpenAIAttr.RequestServiceTier] = request.serviceTier;
757
755
  }
758
756
  if (request.reasoningEffort) attrs[PiGenAIAttr.RequestReasoningEffort] = request.reasoningEffort;
759
757
  const toolChoice = serializeToolChoice(request.toolChoice);