Skip to main content

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

If this is a remote session (use chat() instead)

Uses

  • ValueError
  • Agent

Used By

Source

View on GitHub

praisonaiagents/session.py at line 133

Agents Concept

Single Agent Guide

Multi-Agent Guide

Agent Configuration

Auto Agents