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

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)
 

Function Documentation

◆ agent_test()

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.  

◆ get_time_now()

str iragent.tools.get_time_now ( )

Just return current local time.

Returns
str: return current local time as string

◆ simple_termination()

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.

Parameters
word: termination keyword.
message: a Message that will be checked if it have termination keyword word
Returns
bool: True if word founded in message otherwise return False