Logo
Classes

AgentInput

Defined in: packages/workflow/src/agent/events.ts:21

Extends

  • WorkflowEvent<{ input: ChatMessage[]; currentAgentName: string; }>

Constructors

Constructor

new AgentInput(data): AgentInput

Defined in: packages/workflow/src/workflow-event.ts:5

Parameters

data
input

ChatMessage[]

currentAgentName

string

Returns

AgentInput

Inherited from

WorkflowEvent.constructor

Properties

displayName

displayName: string

Defined in: packages/workflow/src/workflow-event.ts:2

Inherited from

WorkflowEvent.displayName


data

data: object

Defined in: packages/workflow/src/workflow-event.ts:3

input

input: ChatMessage[]

currentAgentName

currentAgentName: string

Inherited from

WorkflowEvent.data

Methods

toString()

toString(): string

Defined in: packages/workflow/src/workflow-event.ts:10

Returns

string

Inherited from

WorkflowEvent.toString


or()

static or<A, B>(AEvent, BEvent): A | B

Defined in: packages/workflow/src/workflow-event.ts:14

Type Parameters

A

A extends AnyWorkflowEventConstructor

B

B extends AnyWorkflowEventConstructor

Parameters

AEvent

A

BEvent

B

Returns

A | B

Inherited from

WorkflowEvent.or

On this page