Skip to content

Agent

flowtask.interfaces.parrot.agent

Create a Parrot AI Agent for FlowTask.

AgentBase

AgentBase(*args, **kwargs)

Bases: ABC

AgentBase.

Interface for creating new Parrot AI Agents to be used directly as Flowtask Components.

ask_agent async

ask_agent(userid, query=None, prompt_file=None, *args, **kwargs)

Asks the agent a question and returns an Object response.

create_agent async

create_agent(llm=None, model=None, tools=None, backstory=None)

Create and configure a BasicAgent instance.

db_connection

db_connection(driver='pg', dsn=None, credentials=None)

Return a database connection.

open_file async

open_file(file, prefix='files')

Opens a prompt file and returns its content.

open_prompt async

open_prompt(prompt_file=None, base_dir=None)

Opens a prompt file and returns its content.

start async

start(**kwargs)

Check for File and Directory information.