🔄 Big News! bazed.ai is now sagentic.ai. Same vision, new name!

Skip to content

@sagentic-ai/sagentic-af / MessageRole

MessageRole ​

Role of a message

Enumeration Members ​

Assistant ​

ts
Assistant: "assistant";

Prompt sent by assistant i.e. going from OpenAI to us

Source ​

src/thread.ts:14


System ​

ts
System: "system";

System prompt, only allowed once in a conversation, in the beginning

Source ​

src/thread.ts:10


Tool ​

ts
Tool: "tool";

Tool response

Source ​

src/thread.ts:16


User ​

ts
User: "user";

Prompt sent by user i.e. going from us to OpenAI

Source ​

src/thread.ts:12