Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.phidata.com/llms.txt

Use this file to discover all available pages before exploring further.

Example

The following agent will use the Phi toolkit to create and manage phidata workspaces. It can create new applications from templates like llm-app, api-app, django-app, and streamlit-app. It can also start existing workspaces and validate that Phi is ready to run commands.
cookbook/tools/phi_tools.py
from phi.agent import Agent
from phi.tools.phi import PhiTools

# Create an Agent with the Phi tool
agent = Agent(tools=[PhiTools()], name="Phi Workspace Manager")

# Example 1: Create a new agent app
agent.print_response("Create a new agent-app called agent-app-turing", markdown=True)

# Example 3: Start a workspace
agent.print_response("Start the workspace agent-app-turing", markdown=True)

Toolkit Params

ParameterTypeDefaultDescription
namestr"phi_tools"The name of the tool

Toolkit Functions

FunctionDescription
validate_phi_is_readyValidates that Phi is ready to run commands
create_new_appCreates a new phidata workspace for a given application template
start_user_workspaceStarts the workspace for a user

Information