Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpreetbedi committed Oct 23, 2024
1 parent 481820c commit 2822bdf
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 76 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ The Agent Playground includes a few demo agents that you can test with. If you h

Phidata comes with built-in monitoring. You can set `monitoring=True` on any agent to track sessions or set `PHI_MONITORING=true` in your environment.

> Note: Run `phi auth` first to authenticate your local account.
> [!NOTE]
> Run `phi auth` to authenticate your local account or export the `PHI_API_KEY`
```python
from phi.agent import Agent
Expand All @@ -307,7 +308,7 @@ Run the agent and monitor the results on [phidata.app/sessions](https://www.phid
# You can also set the environment variable
# export PHI_MONITORING=true

python agent_monitor.py
python monitoring.py
```

View the agent session on [phidata.app/sessions](https://www.phidata.app/sessions)
Expand Down Expand Up @@ -365,11 +366,9 @@ python_agent = PythonAgent(
python_agent.print_response("What is the average rating of movies?")
```

- Install pandas and run the `python_agent.py`
- Run the `python_agent.py`

```shell
pip install pandas

python python_agent.py
```

Expand Down Expand Up @@ -506,6 +505,6 @@ Phidata logs which model an agent used so we can prioritize features for the mos

You can disable this by setting `PHI_TELEMETRY=false` in your environment.

<p align="right">
<p align="left">
<a href="#top">⬆️ Back to Top</a>
</p>
4 changes: 4 additions & 0 deletions cookbook/agents/07_monitoring.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from phi.agent import Agent

agent = Agent(markdown=True, monitoring=True)
agent.print_response("Share a 2 sentence horror story")
4 changes: 4 additions & 0 deletions cookbook/agents/08_debugging.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from phi.agent import Agent

agent = Agent(markdown=True, debug_mode=True)
agent.print_response("Share a 2 sentence horror story")
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@
pip_install=True,
show_tool_calls=True,
)

python_agent.print_response("What is the average rating of movies?")
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
indent=2,
),
)

data_analyst.print_response(
"Show me a histogram of ratings. "
"Choose an appropriate bucket size but share how you chose it. "
Expand Down
File renamed without changes.
42 changes: 0 additions & 42 deletions cookbook/agents/movie_agent.py

This file was deleted.

26 changes: 0 additions & 26 deletions cookbook/agents/telemetry.py

This file was deleted.

0 comments on commit 2822bdf

Please sign in to comment.