Skip to main content

Interface: PendingAction

Defined in: packages/agentos/src/core/hitl/IHumanInteractionManager.ts:45

A pending action awaiting human approval.

Properties

actionId

actionId: string

Defined in: packages/agentos/src/core/hitl/IHumanInteractionManager.ts:47

Unique action identifier


agentId

agentId: string

Defined in: packages/agentos/src/core/hitl/IHumanInteractionManager.ts:55

Agent requesting approval


alternatives?

optional alternatives: AlternativeAction[]

Defined in: packages/agentos/src/core/hitl/IHumanInteractionManager.ts:69

Alternative actions available


category?

optional category: "system" | "communication" | "data_modification" | "external_api" | "financial" | "other"

Defined in: packages/agentos/src/core/hitl/IHumanInteractionManager.ts:53

Category of action


context

context: Record<string, unknown>

Defined in: packages/agentos/src/core/hitl/IHumanInteractionManager.ts:57

Context/parameters of the action


description

description: string

Defined in: packages/agentos/src/core/hitl/IHumanInteractionManager.ts:49

Human-readable description of the action


estimatedCost?

optional estimatedCost: object

Defined in: packages/agentos/src/core/hitl/IHumanInteractionManager.ts:63

Estimated cost (if applicable)

amount

amount: number

currency

currency: string


potentialConsequences?

optional potentialConsequences: string[]

Defined in: packages/agentos/src/core/hitl/IHumanInteractionManager.ts:59

Potential consequences if approved


requestedAt

requestedAt: Date

Defined in: packages/agentos/src/core/hitl/IHumanInteractionManager.ts:65

Timestamp when request was made


reversible

reversible: boolean

Defined in: packages/agentos/src/core/hitl/IHumanInteractionManager.ts:61

Reversibility of the action


severity

severity: ActionSeverity

Defined in: packages/agentos/src/core/hitl/IHumanInteractionManager.ts:51

Action severity/risk level


timeoutMs?

optional timeoutMs: number

Defined in: packages/agentos/src/core/hitl/IHumanInteractionManager.ts:67

Timeout for approval (ms)