Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions packages/agents-a365-observability/docs/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,7 @@ enum InvocationRole {
}

enum InferenceOperationType {
CHAT = 'Chat',
TEXT_COMPLETION = 'TextCompletion',
GENERATE_CONTENT = 'GenerateContent'
CHAT = 'Chat'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ export enum InvocationRole {
* Represents different operation for types for model inference
*/
export enum InferenceOperationType {
CHAT = 'Chat',
TEXT_COMPLETION = 'TextCompletion',
GENERATE_CONTENT = 'GenerateContent'
CHAT = 'Chat'
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ const GEN_AI_OPERATION_NAMES: ReadonlySet<string> = new Set([
OpenTelemetryConstants.OUTPUT_MESSAGES_OPERATION_NAME, // 'output_messages'
OpenTelemetryConstants.CHAT_OPERATION_NAME, // 'chat'
'Chat', // InferenceOperationType.CHAT
'TextCompletion', // InferenceOperationType.TEXT_COMPLETION
'GenerateContent', // InferenceOperationType.GENERATE_CONTENT
]);

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/observability/core/scopes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ describe('Scopes', () => {
it('should create scope with minimal details', () => {
const spy = jest.spyOn(OpenTelemetryScope.prototype as any, 'setTagMaybe');
const inferenceDetails: InferenceDetails = {
operationName: InferenceOperationType.TEXT_COMPLETION,
operationName: InferenceOperationType.CHAT,
model: 'gpt-3.5-turbo'
};

Expand Down
Loading