Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/monorepo commons #2334

Draft
wants to merge 7 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
reevrt
  • Loading branch information
mmabrouk committed Dec 3, 2024
commit 943bce0c4029c3460c47069d2e1cd8a573ac4fdb
79 changes: 0 additions & 79 deletions agenta-web/src/lib/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -705,82 +705,3 @@ export type FilterConditions =
| "is_not"
| "btwn"
| ""

export enum GenerationStatus {
UNSET = "UNSET",
OK = "OK",
ERROR = "ERROR",
}

export enum GenerationKind {
TOOL = "TOOL",
CHAIN = "CHAIN",
LLM = "LLM",
WORKFLOW = "WORKFLOW",
RETRIEVER = "RETRIEVER",
EMBEDDING = "EMBEDDING",
AGENT = "AGENT",
UNKNOWN = "UNKNOWN",
}

export interface Generation {
id: string
created_at: string
variant: {
variant_id: string
variant_name: string
revision: number
}
environment: string | null
status: GenerationStatus
error?: string
spankind: GenerationKind
metadata?: RequestMetadata
user_id?: string
children?: []
parent_span_id?: string
name?: string
content: {
inputs: Record<string, any>
internals: Record<string, any>
outputs: string[] | Record<string, any>
}
}

export interface GenerationTreeNode {
title: React.ReactElement
key: string
children?: GenerationTreeNode[]
}

export interface GenerationDetails extends Generation {
config: GenericObject
}

export interface GenerationDashboardData {
data: {
timestamp: number | string
success_count: number
failure_count: number
cost: number
latency: number
total_tokens: number
prompt_tokens: number
completion_tokens: number
enviornment: string
variant: string
}[]
total_count: number
failure_rate: number
total_cost: number
avg_cost: number
avg_latency: number
total_tokens: number
avg_tokens: number
}

export interface Trace extends Generation {}

export interface TraceDetails extends GenerationDetails {
spans: Generation[]
}
2 changes: 1 addition & 1 deletion agenta-web/src/services/observability/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// - fetchAll: GET all entities from server
// - create: POST data to server
// - update: PUT data to server
// - delete: DELETE data from server
// - delete: DELETE data from server
Loading