Skip to main content
Resources provide external data and files to agents.

Quick Start

1

Add Resources

use praisonai::Agent;

let agent = Agent::new()
    .name("Assistant")
    .resource("config.json")
    .resource("data/")
    .build()?;

Resource Types

TypeDescription
FilesStatic files
DirectoriesFile collections
URLsRemote resources
DatabasesData connections