Iragent
This project is about using agents as simple as possible with small and large language models
Loading...
Searching...
No Matches
iragent.message.Message Class Reference

This is the message class and it's a wrapper class around messages between user and agent. More...

Public Member Functions

None __init__ (self, str sender=None, str reciever=None, str content=None, str intent=None, Dict metadata=None)
 
 __repr__ (self)
 in this method we changed the way we want to represent Message object
 

Public Attributes

 sender = sender
 This is the one who sends the message.
 
 reciever = reciever
 This is the one who get's the message.
 
 content = content
 This is the cotnent of the message.
 
 intent = intent
 No explanation yet.
 
 metadata = metadata or {}
 It's contain some extra information like what this message replies to.
 

Detailed Description

This is the message class and it's a wrapper class around messages between user and agent.

Constructor & Destructor Documentation

◆ __init__()

None iragent.message.Message.__init__ ( self,
str sender = None,
str reciever = None,
str content = None,
str intent = None,
Dict metadata = None )

Member Function Documentation

◆ __repr__()

iragent.message.Message.__repr__ ( self)

in this method we changed the way we want to represent Message object

Member Data Documentation

◆ content

iragent.message.Message.content = content

This is the cotnent of the message.

◆ intent

iragent.message.Message.intent = intent

No explanation yet.

◆ metadata

iragent.message.Message.metadata = metadata or {}

It's contain some extra information like what this message replies to.

◆ reciever

iragent.message.Message.reciever = reciever

This is the one who get's the message.

◆ sender

iragent.message.Message.sender = sender

This is the one who sends the message.


The documentation for this class was generated from the following file: