mirror of
https://github.com/agno-agi/agno.git
synced 2026-10-12 02:10:54 +00:00
# Changelog ## New Feature: - **Context Compression**: Introducing compression of tool call results in a running context. Context Compression allows you to manage your agent context while it is running, helping the agent stay within its context window and avoid rate limits or decreases in response quality. This is still a **beta** feature. See the [docs](https://docs.agno.com/basics/context-compression/overview) - **Memory Optimisation:** Added the ability to summarize a user’s memories. This adds `optimize_memories` and `aoptimize_memories` to the `MemoryManager` as a way to summarize memories outside of agent runs. Only one strategy is currently supported, but this will be extended in future. Thie is still a **beta** feature. See the [docs](https://docs.agno.com/basics/memory/working-with-memories/memory-optimization). - **Gemini File Search Support**: Added support for [Gemini File Search](https://blog.google/technology/developers/file-search-gemini-api/). - File Search Store Management: Create, list, get, and delete document stores - File Upload & Import: Direct upload with custom chunking configuration and metadata - Document Management: List, get, delete, and update documents with metadata filtering - Citation Extraction: Helper methods to extract and format source citations from responses - Async Support: Full async/await support for production workloads - Docs coming soon! In the mean time check out these cookbooks: - `cookbook/models/google/gemini/file_search_basic.py` - `cookbook/models/google/gemini/file_search_advanced.py` - `cookbook/models/google/gemini/file_search_rag_pipeline.py` ## Improvements: - **`output_schema` on run/arun**: override `output_schema` at runtime via the `run()` and `arun()` methods for both `Agent` and `Team`, as well as AgentOS API endpoints. - **API Key for AWS Bedrock**: Added `api_key` support for AWS Bedrock. See the [documentation](https://docs.agno.com/integrations/models/cloud/aws-claude/overview). - **AWS Bedrock Claude**: It is now more compatible with native Claude, which adds support for thinking models and caching. - **VertexAI Claude**: It is now more compatible with native Claude, which adds support for thinking models and caching. - **Gemini 3 Thinking Level**: Added support for `thinking_level` on `Gemini` ## Bug Fixes: - **Async Knowledge Retriever:** Fixed a bug where async knowledge retrieving would break due to missing async versions of `get_user_message` functions on Agent and Team - **Team Member Events**: Ensure that member events are streamed if `stream_member_events=True` but `stream_events=False` on `Team`. - **MigrationManager Improvements:** Fixed an issue preventing migrations from being applied for versions older than 2.3.0. Also adds support for a force migration flag - **StopAgentRun**: Fixed the `StopAgentRun` exception from not correctly ending the agent run. - **PDF Image Reader:** Fixed PDF Image Reader generating ID’s based on filename instead of using UUID. - **MCP `tool_name_prefix`:** Made the `tool_name_prefix` parameter `None` by default to prevent it from adding `_` by default as a prefix. - **AGUI:** - Duplicate value for `tool_call_id` fixed - Missing assistant messages for tool calls fixed --------- Co-authored-by: Dirk Brand <[email protected]> Co-authored-by: Mustafa Esoofally <[email protected]>
47 lines
1.8 KiB
Bash
Executable File
47 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
############################################################################
|
|
# Agno Development Setup
|
|
# - Create a virtual environment and install libraries in editable mode.
|
|
# - Please install uv before running this script.
|
|
# - Please deactivate the existing virtual environment before running.
|
|
# Usage: ./scripts/dev_setup.sh
|
|
############################################################################
|
|
|
|
CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
REPO_ROOT="$(dirname "${CURR_DIR}")"
|
|
AGNO_DIR="${REPO_ROOT}/libs/agno"
|
|
AGNO_INFRA_DIR="${REPO_ROOT}/libs/agno_infra"
|
|
source "${CURR_DIR}/_utils.sh"
|
|
|
|
VENV_DIR="${REPO_ROOT}/.venv"
|
|
PYTHON_VERSION=$(python3 --version)
|
|
|
|
print_heading "Development setup..."
|
|
|
|
print_heading "Removing virtual env"
|
|
print_info "rm -rf ${VENV_DIR}"
|
|
rm -rf ${VENV_DIR}
|
|
|
|
print_heading "Creating virtual env"
|
|
print_info "VIRTUAL_ENV=${VENV_DIR} uv venv --python 3.12"
|
|
VIRTUAL_ENV=${VENV_DIR} uv venv --python 3.12
|
|
|
|
print_heading "Installing agno"
|
|
print_info "VIRTUAL_ENV=${VENV_DIR} uv pip install -r ${AGNO_DIR}/requirements.txt"
|
|
VIRTUAL_ENV=${VENV_DIR} uv pip install -r ${AGNO_DIR}/requirements.txt
|
|
|
|
print_heading "Installing agno in editable mode with tests dependencies"
|
|
VIRTUAL_ENV=${VENV_DIR} uv pip install -U -e ${AGNO_DIR}[tests]
|
|
VIRTUAL_ENV=${VENV_DIR} uv pip install brave-search
|
|
|
|
|
|
print_heading "Installing agno-infra"
|
|
print_info "VIRTUAL_ENV=${VENV_DIR} uv pip install -r ${AGNO_INFRA_DIR}/requirements.txt"
|
|
VIRTUAL_ENV=${VENV_DIR} uv pip install -r ${AGNO_INFRA_DIR}/requirements.txt
|
|
|
|
print_heading "Installing agno-infra in editable mode with dev dependencies"
|
|
VIRTUAL_ENV=${VENV_DIR} uv pip install -e ${AGNO_INFRA_DIR}[dev]
|
|
|
|
print_heading "Development setup complete"
|
|
print_heading "Activate venv using: source .venv/bin/activate" |