mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-22 00:31:44 +00:00
fix(agent-sdk): align SessionStatus and RunStatus enums with backend wire values
Backend (LIT-2890) emits provisioning/ready/busy/error/terminated for session status and queued/running/finished/cancelled/error for run status. Update the SDK type aliases so callers compare against the actual values the proxy returns over the wire.
This commit is contained in:
parent
6f3895b07c
commit
595f660899
1 changed files with 9 additions and 9 deletions
|
|
@ -66,18 +66,18 @@ export interface CreateSessionOptions {
|
|||
}
|
||||
|
||||
export type SessionStatus =
|
||||
| "pending"
|
||||
| "running"
|
||||
| "idle"
|
||||
| "terminated"
|
||||
| "failed";
|
||||
| "provisioning"
|
||||
| "ready"
|
||||
| "busy"
|
||||
| "error"
|
||||
| "terminated";
|
||||
|
||||
export type RunStatus =
|
||||
| "queued"
|
||||
| "running"
|
||||
| "completed"
|
||||
| "failed"
|
||||
| "cancelled";
|
||||
| "finished"
|
||||
| "cancelled"
|
||||
| "error";
|
||||
|
||||
/** Lightweight info returned by list endpoints. */
|
||||
export interface AgentInfo {
|
||||
|
|
@ -149,7 +149,7 @@ export class LiteLLMAgentError extends Error {
|
|||
message: string,
|
||||
options: { code: string; status?: number; retryable?: boolean } = {
|
||||
code: "unknown",
|
||||
}
|
||||
},
|
||||
) {
|
||||
super(message);
|
||||
this.name = "LiteLLMAgentError";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue