agent • AI Agent SDK
Module reference for agent
agent
AI Agent
Import
from praisonaiagents.agent import agentClasses
Constants
| Name | Value | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
_FILE_EXTENSIONS | frozenset({'.txt', '.md', '.json', '.yaml', '.yml', '.html', '.csv', '.log', '.xml', '.rst'}) | |||||||||||||||||||
_PRESET_STRING_PARAMS | {'output': lambda: OUTPUT_PRESETS.keys(), 'execution': lambda: EXECUTION_PRESETS.keys(), 'context': lambda: CONTEXT_PRESETS.keys(), 'autonomy': lambda: AUTONOMY_PRESETS.keys(), 'approval': _approval_p... | |||||||||||||||||||
_COMPLETION_NEGATION_RE | `re.compile(“\\b(?:not\ | never\ | no longer\ | hardly\ | barely\ | isn\\’t\ | aren\\’t\ | wasn\\’t\ | weren\\’t\ | hasn\\’t\ | haven\\’t\ | hadn\\’t\ | won\\’t\ | wouldn\\’t\ | can\\’t\ | couldn\\’t\ | shouldn\\’t\ | don\\’t\ | doesn\\’t\ | didn\\’t)\\b.{0,…` |
_COMPLETION_PATTERNS | ((re.compile('\\btask\\s+completed?\\b'), False), (re.compile('\\bcompleted\\s+successfully\\b'), False), (re.compile('\\ball\\s+done\\b'), False), (re.compile('\\bdone\\b'), True), (re.compile('\\bfi... | |||||||||||||||||||
_LOCAL_ENDPOINT_DEFAULT_MODEL_WARNED | False |