Agent
Method
This is a method of the Session class in the session module.Create an agent with session context.
Signature
Parameters
str
required
Agent name
str
default:"'Assistant'"
Agent role
Optional
Agent instructions
Optional
List of tools for the agent
bool
default:"True"
Enable memory for the agent
Optional
Knowledge sources for the agent **kwargs: Additional agent parameters
Returns
Agent
Configured Agent instance
Exceptions
ValueError
ValueError
If this is a remote session (use chat() instead)
Uses
ValueErrorAgent
Used By
ContextAgent.analyze_codebase_with_gitingestContextAgent.perform_ast_analysisContextAgent.extract_implementation_patternsContextAgent.analyze_test_patternsContextAgent.generate_comprehensive_prp
Source
View on GitHub
praisonaiagents/session.py at line 133
