Skip to content

Latest commit

 

History

History
321 lines (161 loc) · 5.91 KB

State.md

File metadata and controls

321 lines (161 loc) · 5.91 KB

@ai16z/eliza v0.1.4-alpha.3 / State

Interface: State

Represents the current state/context of a conversation

Indexable

[key: string]: unknown

Properties

userId?

optional userId: `${string}-${string}-${string}-${string}-${string}`

ID of user who sent current message

Defined in

packages/core/src/types.ts:238


agentId?

optional agentId: `${string}-${string}-${string}-${string}-${string}`

ID of agent in conversation

Defined in

packages/core/src/types.ts:241


bio

bio: string

Agent's biography

Defined in

packages/core/src/types.ts:244


lore

lore: string

Agent's background lore

Defined in

packages/core/src/types.ts:247


messageDirections

messageDirections: string

Message handling directions

Defined in

packages/core/src/types.ts:250


postDirections

postDirections: string

Post handling directions

Defined in

packages/core/src/types.ts:253


roomId

roomId: `${string}-${string}-${string}-${string}-${string}`

Current room/conversation ID

Defined in

packages/core/src/types.ts:256


agentName?

optional agentName: string

Optional agent name

Defined in

packages/core/src/types.ts:259


senderName?

optional senderName: string

Optional message sender name

Defined in

packages/core/src/types.ts:262


actors

actors: string

String representation of conversation actors

Defined in

packages/core/src/types.ts:265


actorsData?

optional actorsData: Actor[]

Optional array of actor objects

Defined in

packages/core/src/types.ts:268


goals?

optional goals: string

Optional string representation of goals

Defined in

packages/core/src/types.ts:271


goalsData?

optional goalsData: Goal[]

Optional array of goal objects

Defined in

packages/core/src/types.ts:274


recentMessages

recentMessages: string

Recent message history as string

Defined in

packages/core/src/types.ts:277


recentMessagesData

recentMessagesData: Memory[]

Recent message objects

Defined in

packages/core/src/types.ts:280


actionNames?

optional actionNames: string

Optional valid action names

Defined in

packages/core/src/types.ts:283


actions?

optional actions: string

Optional action descriptions

Defined in

packages/core/src/types.ts:286


actionsData?

optional actionsData: Action[]

Optional action objects

Defined in

packages/core/src/types.ts:289


actionExamples?

optional actionExamples: string

Optional action examples

Defined in

packages/core/src/types.ts:292


providers?

optional providers: string

Optional provider descriptions

Defined in

packages/core/src/types.ts:295


responseData?

optional responseData: Content

Optional response content

Defined in

packages/core/src/types.ts:298


recentInteractionsData?

optional recentInteractionsData: Memory[]

Optional recent interaction objects

Defined in

packages/core/src/types.ts:301


recentInteractions?

optional recentInteractions: string

Optional recent interactions string

Defined in

packages/core/src/types.ts:304


formattedConversation?

optional formattedConversation: string

Optional formatted conversation

Defined in

packages/core/src/types.ts:307


knowledge?

optional knowledge: string

Optional formatted knowledge

Defined in

packages/core/src/types.ts:310


knowledgeData?

optional knowledgeData: KnowledgeItem[]

Optional knowledge data

Defined in

packages/core/src/types.ts:312