@agentmark-ai/api-types 0.1.0 → 0.2.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/types.d.ts +8 -8
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -785,7 +785,7 @@ export interface IAnalyticsService {
|
|
|
785
785
|
getScoreComparison(ctx: TenantContext, nameA: string, nameB: string, dateRange: DateRange, source?: string): Promise<ScoreComparisonResponse>;
|
|
786
786
|
getScoreScatter(ctx: TenantContext, nameA: string, nameB: string, dateRange: DateRange, source?: string): Promise<ScoreScatterResponse>;
|
|
787
787
|
getDistinctMetadataKeys(ctx: TenantContext): Promise<string[]>;
|
|
788
|
-
|
|
788
|
+
getRequests(ctx: TenantContext, params: RequestsParams): Promise<RequestsResponse>;
|
|
789
789
|
getRankingData(ctx: TenantContext, dateRange: DateRange, dimension: string, limit?: number, filters?: AnalyticsFilter[]): Promise<RankingDataResponse>;
|
|
790
790
|
getAggregateRequests(ctx: TenantContext, params: AggregateRequestsParams): Promise<AggregateRequestsResponse>;
|
|
791
791
|
getSpanKindBreakdown(ctx: TenantContext, dateRange: {
|
|
@@ -801,9 +801,9 @@ export interface SpanKindBreakdownRecord {
|
|
|
801
801
|
totalTokens: number;
|
|
802
802
|
}
|
|
803
803
|
/**
|
|
804
|
-
* Parameters for listing
|
|
804
|
+
* Parameters for listing requests.
|
|
805
805
|
*/
|
|
806
|
-
export interface
|
|
806
|
+
export interface RequestsParams extends PaginationParams {
|
|
807
807
|
startDate?: string;
|
|
808
808
|
endDate?: string;
|
|
809
809
|
model?: string;
|
|
@@ -814,9 +814,9 @@ export interface PromptLogsParams extends PaginationParams {
|
|
|
814
814
|
filters?: AnalyticsFilter[];
|
|
815
815
|
}
|
|
816
816
|
/**
|
|
817
|
-
*
|
|
817
|
+
* Request record (GENERATION-type trace with input/output).
|
|
818
818
|
*/
|
|
819
|
-
export interface
|
|
819
|
+
export interface RequestRecord {
|
|
820
820
|
id: string;
|
|
821
821
|
tenantId: string;
|
|
822
822
|
appId: string;
|
|
@@ -836,10 +836,10 @@ export interface PromptLogRecord {
|
|
|
836
836
|
props: string;
|
|
837
837
|
}
|
|
838
838
|
/**
|
|
839
|
-
* Paginated response for
|
|
839
|
+
* Paginated response for requests listing.
|
|
840
840
|
*/
|
|
841
|
-
export interface
|
|
842
|
-
|
|
841
|
+
export interface RequestsResponse {
|
|
842
|
+
requests: RequestRecord[];
|
|
843
843
|
total: number;
|
|
844
844
|
limit: number;
|
|
845
845
|
offset: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentmark-ai/api-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Shared API contract types for AgentMark services",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"clean": "rm -rf dist"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@agentmark-ai/api-schemas": "0.
|
|
18
|
+
"@agentmark-ai/api-schemas": "0.2.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"typescript": "^5.5.3"
|