Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class 3288 #1501

Open
wants to merge 2,278 commits into
base: feature/assistant-test
Choose a base branch
from
Open

Conversation

jacket0603
Copy link

No description provided.

ashpreetbedi and others added 29 commits November 26, 2024 13:08
…rnlm25-phi-1828

feature-request-internlm25-phi-1828
…ks-phi-2020

s3-knowledge-cookbooks-phi-2020
…okbook-example-phi-1918

add-azureembedder-cookbook-example-phi-1918
…hout-knowledge-base-phi-2019

context-creation-without-knowledge-base-phi-2019
…ebase-cookbook-phi-1898

Add Document Knowledge Base cookbook
…ontributing-md

update license in CONTRIBUTING.md
…toring-update-phi-2087

reasoning-agent-monitoring-update-phi-2087
…e-to-knowledge-phi-2000

change-knowledge_base-to-knowledge-phi-2000
* feat: add Discord integration tool

Add Discord bot functionality to phi tools with async support.
Includes basic channel and message management capabilities.

- Send/delete messages
- Get channel history
- List channels and info
- Example usage in cookbook

* fix: add discord type checking overrides

Add discord.* and discord.ext.* to mypy overrides to fix type checking
Remove double import of discord and discord.ext

* chore: add discord modules to mypy overrides in alphabetical order

* chore: update Discord agent name and others

- Change agent variable name to discord_agent
- Pass model to agent
- Get discord bot token from env

* feat(discord): Simplify Discord tools implementation

- Replace Discord bot with direct HTTP API calls
- Use requests for simpler implementation
- Add message deletion capability
- Improve error handling and logging
- Update cookbook example with cleaner structure
- Add static methods for tool configuration

The changes make the Discord tools more consistent with other
tools in the project while reducing complexity and dependencies.

* chore: remove redundant comment in discord_tools.py

* docs: improve method docstrings

- Add Args and Returns sections to method docstrings
- Implemented the `BaiduSearch` toolkit under `phi/tools/baidusearch.py`:
    - Allows to perform Baidu searches with options for maximum results, language settings, custom headers, and proxy support.
    - Integrated error handling for missing dependencies (`baidusearch`, `pycountry`) with installation instructions.
    - Configured search results to include title, URL, abstract, and ranking in JSON format.
    - Supports automatic language code conversion using `pycountry` (fallback to Chinese for invalid input).

- Added an example in `cookbook/tools/baidusearch_tools.py`:
    - Demonstrates how to use the `BaiduSearch` tool in a Phidata `Agent`.
    - Configured an agent to search in both English and Chinese and select the top 3 results from 5 searches.
    - Includes user-friendly prompts and markdown formatting for responses.

- Features:
    - Debug logging for easier troubleshooting.
    - Timeout settings for search requests.

This commit expands Phidata's search capabilities by integrating Baidu, making it useful for users in regions where Baidu is a preferred search engine.
Added an example cookbook on how to use LanceDB as your Vectorstore to run your agent.
Add: Example on how to use LanceDB as vectorDB.
Update knowledge.py: Added 'psycopg[binary]' in install command.
…ai-phi-1412

google-model-vertex-ai-phi-1412
@manthanguptaa
Copy link
Contributor

Hey @jacket0603, can you fix your PR? This seems to have changes that aren't supposed to be there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.