Iragent
This project is about using agents as simple as possible with small and large language models
|
Functions | |
str | get_time_now () |
Just return current local time. | |
bool | simple_termination (str word, Message message) |
This is just a function that check if the termination keyword was in the message, return True or False. | |
str | agent_test (str input, str prompt, dict cfg) |
str iragent.tools.agent_test | ( | str | input, |
str | prompt, | ||
dict | cfg ) |
This function create an agent with that system_prompt and pass the input to this and get the output.
str iragent.tools.get_time_now | ( | ) |
Just return current local time.
string
bool iragent.tools.simple_termination | ( | str | word, |
Message | message ) |
This is just a function that check if the termination keyword was in the message, return True or False.
word | : termination keyword. |
message | : a Message that will be checked if it have termination keyword word |
word
founded in message
otherwise return False