@ai16z/eliza v0.1.4-alpha.3 / State
Represents the current state/context of a conversation
[key
: string
]: unknown
optional
userId: `${string}-${string}-${string}-${string}-${string}`
ID of user who sent current message
packages/core/src/types.ts:238
optional
agentId: `${string}-${string}-${string}-${string}-${string}`
ID of agent in conversation
packages/core/src/types.ts:241
bio:
string
Agent's biography
packages/core/src/types.ts:244
lore:
string
Agent's background lore
packages/core/src/types.ts:247
messageDirections:
string
Message handling directions
packages/core/src/types.ts:250
postDirections:
string
Post handling directions
packages/core/src/types.ts:253
roomId: `${string}-${string}-${string}-${string}-${string}`
Current room/conversation ID
packages/core/src/types.ts:256
optional
agentName:string
Optional agent name
packages/core/src/types.ts:259
optional
senderName:string
Optional message sender name
packages/core/src/types.ts:262
actors:
string
String representation of conversation actors
packages/core/src/types.ts:265
optional
actorsData:Actor
[]
Optional array of actor objects
packages/core/src/types.ts:268
optional
goals:string
Optional string representation of goals
packages/core/src/types.ts:271
optional
goalsData:Goal
[]
Optional array of goal objects
packages/core/src/types.ts:274
recentMessages:
string
Recent message history as string
packages/core/src/types.ts:277
recentMessagesData:
Memory
[]
Recent message objects
packages/core/src/types.ts:280
optional
actionNames:string
Optional valid action names
packages/core/src/types.ts:283
optional
actions:string
Optional action descriptions
packages/core/src/types.ts:286
optional
actionsData:Action
[]
Optional action objects
packages/core/src/types.ts:289
optional
actionExamples:string
Optional action examples
packages/core/src/types.ts:292
optional
providers:string
Optional provider descriptions
packages/core/src/types.ts:295
optional
responseData:Content
Optional response content
packages/core/src/types.ts:298
optional
recentInteractionsData:Memory
[]
Optional recent interaction objects
packages/core/src/types.ts:301
optional
recentInteractions:string
Optional recent interactions string
packages/core/src/types.ts:304
optional
formattedConversation:string
Optional formatted conversation
packages/core/src/types.ts:307
optional
knowledge:string
Optional formatted knowledge
packages/core/src/types.ts:310
optional
knowledgeData:KnowledgeItem
[]
Optional knowledge data