atomic-agents 2.7.1__tar.gz → 2.7.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/PKG-INFO +1 -1
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/utils/token_counter.py +5 -2
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/tests/utils/test_token_counter.py +63 -25
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/pyproject.toml +1 -1
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/uv.lock +1 -1
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.assets/architecture_highlevel_overview.png +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.assets/atomic-cli-tool-menu.png +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.assets/atomic-cli.png +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.assets/docs.png +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.assets/logo.png +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.assets/video-thumbnail-1.png +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.assets/video-thumbnail-2.png +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.assets/video-thumbnail.png +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.assets/what_is_sent_in_prompt.png +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.claude/skills/release/SKILL.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.claude-plugin/marketplace.json +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.coveragerc +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.flake8 +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.github/funding.yml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.github/workflows/code-quality.yml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.github/workflows/docs.yml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.gitignore +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/.pre-commit-config.yaml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/LICENSE +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/UPGRADE_DOC.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/agents.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/LICENSE +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/MANIFEST.in +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/agents/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/agents/atomic_agent.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/base/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/base/base_io_schema.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/base/base_prompt.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/base/base_resource.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/base/base_tool.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/connectors/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/connectors/mcp/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/connectors/mcp/mcp_definition_service.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/connectors/mcp/mcp_factory.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/connectors/mcp/schema_transformer.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/context/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/context/chat_history.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/context/system_prompt_generator.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/utils/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/utils/format_tool_message.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/tests/agents/test_atomic_agent.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/tests/base/test_base_tool.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/tests/connectors/mcp/test_mcp_definition_service.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/tests/connectors/mcp/test_mcp_factory.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/tests/connectors/mcp/test_schema_transformer.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/tests/context/test_chat_history.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/tests/context/test_system_prompt_generator.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/tests/files/audio_sample.mp3 +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/tests/files/image_sample.jpg +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/tests/files/pdf_sample.pdf +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/tests/utils/test_format_tool_message.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/app.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/color_utils.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/constants.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/main.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/screens/atomic_tool_explorer.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/screens/file_explorer.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/screens/main_menu.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/screens/tool_info_screen.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/utils.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/widgets/confirmation_modal.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/widgets/generic_list.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/widgets/gradient_title.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/widgets/icon_selection_list.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/widgets/menu.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/widgets/new_item_input.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/widgets/tool_info_display.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/basic-multimodal/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/basic-multimodal/basic_multimodal/main.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/basic-multimodal/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/basic-multimodal/test_images/nutrition_label_1.png +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/basic-multimodal/test_images/nutrition_label_2.jpg +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/basic-pdf-analysis/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/basic-pdf-analysis/basic_pdf_analysis/main.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/basic-pdf-analysis/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/basic-pdf-analysis/test_media/pdf_sample.pdf +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/deep-research/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/deep-research/deep_research/agents/choice_agent.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/deep-research/deep_research/agents/qa_agent.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/deep-research/deep_research/agents/query_agent.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/deep-research/deep_research/config.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/deep-research/deep_research/context_providers.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/deep-research/deep_research/main.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/deep-research/deep_research/tools/searxng_search.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/deep-research/deep_research/tools/webpage_scraper.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/deep-research/mermaid.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/deep-research/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/dspy-integration/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/dspy-integration/dspy_integration/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/dspy-integration/dspy_integration/bridge.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/dspy-integration/dspy_integration/domain/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/dspy-integration/dspy_integration/domain/datasets.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/dspy-integration/dspy_integration/domain/evaluation.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/dspy-integration/dspy_integration/domain/models.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/dspy-integration/dspy_integration/main.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/dspy-integration/dspy_integration/presentation/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/dspy-integration/dspy_integration/presentation/console.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/dspy-integration/dspy_integration/schemas.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/dspy-integration/dspy_integration/stages/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/dspy-integration/dspy_integration/stages/stage1_dspy.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/dspy-integration/dspy_integration/stages/stage2_atomic.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/dspy-integration/dspy_integration/stages/stage3_combined.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/dspy-integration/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/fastapi-memory/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/fastapi-memory/fastapi_memory/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/fastapi-memory/fastapi_memory/client.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/fastapi-memory/fastapi_memory/lib/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/fastapi-memory/fastapi_memory/lib/agents/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/fastapi-memory/fastapi_memory/lib/agents/chat_agent.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/fastapi-memory/fastapi_memory/lib/config.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/fastapi-memory/fastapi_memory/lib/schemas.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/fastapi-memory/fastapi_memory/main.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/fastapi-memory/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/fastapi-memory/test_api.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/hooks-example/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/hooks-example/hooks_example/main.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/hooks-example/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-client/example_client/main.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-client/example_client/main_fastapi.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-client/example_client/main_http.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-client/example_client/main_sse.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-client/example_client/main_stdio.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-client/example_client/main_stdio_async.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-client/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/demo_tools.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/interfaces/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/interfaces/prompt.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/interfaces/resource.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/interfaces/tool.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/prompts/sample_prompts.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/resources/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/resources/sample_resources.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/server.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/server_http.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/server_sse.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/server_stdio.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/services/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/services/prompt_service.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/services/resource_service.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/services/tool_service.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/tools/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/tools/add_numbers.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/tools/batch_operations.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/tools/divide_numbers.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/tools/multiply_numbers.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/example_mcp_server/tools/subtract_numbers.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/nested-multimodal/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/nested-multimodal/nested_multimodal/main.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/nested-multimodal/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/nested-multimodal/test_images/nutrition_label_1.png +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/orchestration-agent/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/orchestration-agent/orchestration_agent/orchestrator.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/orchestration-agent/orchestration_agent/tools/calculator.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/orchestration-agent/orchestration_agent/tools/searxng_search.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/orchestration-agent/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/progressive_disclosure/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/progressive_disclosure/agents/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/progressive_disclosure/agents/orchestrator_agent.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/progressive_disclosure/agents/tool_finder_agent.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/progressive_disclosure/main.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/progressive_disclosure/registry/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/progressive_disclosure/registry/tool_registry.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/progressive_disclosure/tools/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/progressive_disclosure/tools/search_tools.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/servers/data_server/data_server/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/servers/data_server/data_server/server.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/servers/data_server/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/servers/math_server/math_server/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/servers/math_server/math_server/server.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/servers/math_server/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/servers/text_server/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/servers/text_server/text_server/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/progressive-disclosure/servers/text_server/text_server/server.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/quickstart/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/quickstart/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/quickstart/quickstart/1_0_basic_chatbot.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/quickstart/quickstart/1_1_basic_chatbot_streaming.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/quickstart/quickstart/1_2_basic_chatbot_async_streaming.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/quickstart/quickstart/2_basic_custom_chatbot.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/quickstart/quickstart/3_0_basic_custom_chatbot_with_custom_schema.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/quickstart/quickstart/3_1_basic_custom_chatbot_with_custom_schema_streaming.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/quickstart/quickstart/4_basic_chatbot_different_providers.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/quickstart/quickstart/5_custom_system_role_for_reasoning_models.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/quickstart/quickstart/6_0_asynchronous_processing.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/quickstart/quickstart/6_1_asynchronous_processing_streaming.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/rag-chatbot/.gitignore +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/rag-chatbot/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/rag-chatbot/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/rag-chatbot/rag_chatbot/agents/qa_agent.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/rag-chatbot/rag_chatbot/agents/query_agent.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/rag-chatbot/rag_chatbot/config.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/rag-chatbot/rag_chatbot/context_providers.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/rag-chatbot/rag_chatbot/main.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/rag-chatbot/rag_chatbot/services/__init__.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/rag-chatbot/rag_chatbot/services/base.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/rag-chatbot/rag_chatbot/services/chroma_db.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/rag-chatbot/rag_chatbot/services/factory.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/rag-chatbot/rag_chatbot/services/qdrant_db.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/web-search-agent/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/web-search-agent/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/web-search-agent/web_search_agent/agents/query_agent.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/web-search-agent/web_search_agent/agents/question_answering_agent.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/web-search-agent/web_search_agent/main.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/web-search-agent/web_search_agent/tools/searxng_search.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/youtube-summarizer/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/youtube-summarizer/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/youtube-summarizer/youtube_summarizer/agent.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/youtube-summarizer/youtube_summarizer/main.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/youtube-summarizer/youtube_summarizer/tools/youtube_transcript_scraper.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/youtube-to-recipe/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/youtube-to-recipe/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/youtube-to-recipe/youtube_to_recipe/agent.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/youtube-to-recipe/youtube_to_recipe/main.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/youtube-to-recipe/youtube_to_recipe/tools/youtube_transcript_scraper.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/guides/tool_structure.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/bocha_search/.coveragerc +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/bocha_search/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/bocha_search/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/bocha_search/requirements.txt +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/bocha_search/tests/test_bocha_search.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/bocha_search/tool/bocha_search.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/calculator/.coveragerc +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/calculator/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/calculator/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/calculator/requirements.txt +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/calculator/tests/test_calculator.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/calculator/tool/calculator.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/searxng_search/.coveragerc +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/searxng_search/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/searxng_search/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/searxng_search/pytest.ini +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/searxng_search/requirements.txt +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/searxng_search/tests/test_searxng_search.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/searxng_search/tool/searxng_search.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/tavily_search/.coveragerc +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/tavily_search/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/tavily_search/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/tavily_search/requirements.txt +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/tavily_search/tests/test_tavily_seach.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/tavily_search/tool/tavily_search.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/webpage_scraper/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/webpage_scraper/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/webpage_scraper/requirements.txt +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/webpage_scraper/tests/conftest.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/webpage_scraper/tests/test_webpage_scraper.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/webpage_scraper/tool/webpage_scraper.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/youtube_transcript_scraper/.coveragerc +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/youtube_transcript_scraper/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/youtube_transcript_scraper/pyproject.toml +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/youtube_transcript_scraper/requirements.txt +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/youtube_transcript_scraper/tests/test_youtube_transcript_scraper.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-forge/tools/youtube_transcript_scraper/tool/youtube_transcript_scraper.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/build_and_deploy.ps1 +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/.claude-plugin/plugin.json +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/CHANGELOG.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/LICENSE +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/README.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/agents/atomic-architect.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/agents/atomic-explorer.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/agents/atomic-reviewer.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/agents/schema-designer.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/commands/atomic-agent.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/commands/atomic-create.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/commands/atomic-tool.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/skills/atomic-agents/SKILL.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/skills/atomic-agents/examples/basic-agent.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/skills/atomic-context/SKILL.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/skills/atomic-context/examples/rag-context.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/skills/atomic-prompts/SKILL.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/skills/atomic-schemas/SKILL.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/skills/atomic-schemas/examples/common-schemas.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/skills/atomic-structure/SKILL.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/skills/atomic-tools/SKILL.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/claude-plugin/atomic-agents/skills/atomic-tools/examples/api-tool.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/.nojekyll +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/Makefile +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/_static/logo.png +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/api/agents.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/api/context.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/api/index.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/api/utils.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/conf.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/contributing.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/examples/index.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/examples/mcp_agent.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/guides/cookbook.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/guides/deployment.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/guides/error-handling.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/guides/faq.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/guides/hooks.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/guides/index.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/guides/logging.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/guides/memory.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/guides/orchestration.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/guides/performance.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/guides/quickstart.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/guides/security.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/guides/testing.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/guides/tools.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/index.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/docs/make.bat +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/greptile.json +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/guides/DEV_GUIDE.md +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/pytest.ini +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/requirements.txt +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/scripts/generate_llms_files.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/scripts/sync_version.py +0 -0
- {atomic_agents-2.7.1 → atomic_agents-2.7.3}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: atomic-agents
|
|
3
|
-
Version: 2.7.
|
|
3
|
+
Version: 2.7.3
|
|
4
4
|
Summary: A versatile framework for creating and managing intelligent agents.
|
|
5
5
|
Project-URL: Homepage, https://github.com/BrainBlend-AI/atomic-agents
|
|
6
6
|
Project-URL: Repository, https://github.com/BrainBlend-AI/atomic-agents
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/utils/token_counter.py
RENAMED
|
@@ -147,12 +147,15 @@ class TokenCounter:
|
|
|
147
147
|
raise TypeError(f"model must be a string, got {type(model).__name__}")
|
|
148
148
|
|
|
149
149
|
try:
|
|
150
|
-
from litellm import
|
|
150
|
+
from litellm import get_model_info
|
|
151
151
|
except ImportError as e:
|
|
152
152
|
raise ImportError("litellm is required for token counting. " "Install it with: pip install litellm") from e
|
|
153
153
|
|
|
154
154
|
try:
|
|
155
|
-
|
|
155
|
+
info = get_model_info(model)
|
|
156
|
+
# Use max_input_tokens (context window) not max_tokens (output limit)
|
|
157
|
+
max_input = info.get("max_input_tokens")
|
|
158
|
+
return max_input if max_input is not None else info.get("max_tokens")
|
|
156
159
|
except Exception as e:
|
|
157
160
|
logger.warning(f"Could not determine max tokens for model '{model}': {e}")
|
|
158
161
|
return None
|
|
@@ -114,19 +114,57 @@ class TestTokenCounter:
|
|
|
114
114
|
# Should wrap text in a message
|
|
115
115
|
mock_token_counter.assert_called_once_with(model="gpt-4", messages=[{"role": "user", "content": "Hello world"}])
|
|
116
116
|
|
|
117
|
-
@patch("litellm.
|
|
118
|
-
def test_get_max_tokens(self,
|
|
119
|
-
|
|
117
|
+
@patch("litellm.get_model_info")
|
|
118
|
+
def test_get_max_tokens(self, mock_get_model_info):
|
|
119
|
+
mock_get_model_info.return_value = {"max_input_tokens": 128000, "max_tokens": 16384}
|
|
120
|
+
|
|
121
|
+
counter = TokenCounter()
|
|
122
|
+
result = counter.get_max_tokens("gpt-4")
|
|
123
|
+
|
|
124
|
+
assert result == 128000
|
|
125
|
+
mock_get_model_info.assert_called_once_with("gpt-4")
|
|
126
|
+
|
|
127
|
+
@patch("litellm.get_model_info")
|
|
128
|
+
def test_get_max_tokens_falls_back_to_max_tokens(self, mock_get_model_info):
|
|
129
|
+
mock_get_model_info.return_value = {"max_tokens": 8192}
|
|
130
|
+
|
|
131
|
+
counter = TokenCounter()
|
|
132
|
+
result = counter.get_max_tokens("gpt-4")
|
|
133
|
+
|
|
134
|
+
assert result == 8192
|
|
135
|
+
mock_get_model_info.assert_called_once_with("gpt-4")
|
|
136
|
+
|
|
137
|
+
@patch("litellm.get_model_info")
|
|
138
|
+
def test_get_max_tokens_falls_back_when_max_input_tokens_is_none(self, mock_get_model_info):
|
|
139
|
+
mock_get_model_info.return_value = {"max_input_tokens": None, "max_tokens": 8192}
|
|
120
140
|
|
|
121
141
|
counter = TokenCounter()
|
|
122
142
|
result = counter.get_max_tokens("gpt-4")
|
|
123
143
|
|
|
124
144
|
assert result == 8192
|
|
125
|
-
mock_get_max_tokens.assert_called_once_with("gpt-4")
|
|
126
145
|
|
|
127
|
-
@patch("litellm.
|
|
128
|
-
def
|
|
129
|
-
|
|
146
|
+
@patch("litellm.get_model_info")
|
|
147
|
+
def test_get_max_tokens_zero_input_tokens_returns_zero(self, mock_get_model_info):
|
|
148
|
+
"""Ensure max_input_tokens=0 is not confused with 'missing'."""
|
|
149
|
+
mock_get_model_info.return_value = {"max_input_tokens": 0, "max_tokens": 4096}
|
|
150
|
+
|
|
151
|
+
counter = TokenCounter()
|
|
152
|
+
result = counter.get_max_tokens("custom-model")
|
|
153
|
+
|
|
154
|
+
assert result == 0
|
|
155
|
+
|
|
156
|
+
@patch("litellm.get_model_info")
|
|
157
|
+
def test_get_max_tokens_both_keys_missing(self, mock_get_model_info):
|
|
158
|
+
mock_get_model_info.return_value = {"model_name": "some-model"}
|
|
159
|
+
|
|
160
|
+
counter = TokenCounter()
|
|
161
|
+
result = counter.get_max_tokens("some-model")
|
|
162
|
+
|
|
163
|
+
assert result is None
|
|
164
|
+
|
|
165
|
+
@patch("litellm.get_model_info")
|
|
166
|
+
def test_get_max_tokens_unknown_model(self, mock_get_model_info):
|
|
167
|
+
mock_get_model_info.side_effect = Exception("Unknown model")
|
|
130
168
|
|
|
131
169
|
counter = TokenCounter()
|
|
132
170
|
result = counter.get_max_tokens("unknown-model")
|
|
@@ -162,11 +200,11 @@ class TestTokenCounter:
|
|
|
162
200
|
|
|
163
201
|
assert "model is required" in str(exc_info.value)
|
|
164
202
|
|
|
165
|
-
@patch("litellm.
|
|
203
|
+
@patch("litellm.get_model_info")
|
|
166
204
|
@patch("litellm.token_counter")
|
|
167
|
-
def test_count_context(self, mock_token_counter,
|
|
205
|
+
def test_count_context(self, mock_token_counter, mock_get_model_info):
|
|
168
206
|
mock_token_counter.side_effect = [30, 70] # system, then history
|
|
169
|
-
|
|
207
|
+
mock_get_model_info.return_value = {"max_input_tokens": 8192, "max_tokens": 4096}
|
|
170
208
|
|
|
171
209
|
counter = TokenCounter()
|
|
172
210
|
result = counter.count_context(
|
|
@@ -183,12 +221,12 @@ class TestTokenCounter:
|
|
|
183
221
|
assert result.max_tokens == 8192
|
|
184
222
|
assert result.utilization == pytest.approx(100 / 8192)
|
|
185
223
|
|
|
186
|
-
@patch("litellm.
|
|
224
|
+
@patch("litellm.get_model_info")
|
|
187
225
|
@patch("litellm.token_counter")
|
|
188
|
-
def test_count_context_with_tools(self, mock_token_counter,
|
|
226
|
+
def test_count_context_with_tools(self, mock_token_counter, mock_get_model_info):
|
|
189
227
|
# system=30, history=70, empty_with_tools=60, empty_without_tools=10 -> tools=50
|
|
190
228
|
mock_token_counter.side_effect = [30, 70, 60, 10]
|
|
191
|
-
|
|
229
|
+
mock_get_model_info.return_value = {"max_input_tokens": 8192, "max_tokens": 4096}
|
|
192
230
|
|
|
193
231
|
counter = TokenCounter()
|
|
194
232
|
tools = [{"type": "function", "function": {"name": "test_fn"}}]
|
|
@@ -205,11 +243,11 @@ class TestTokenCounter:
|
|
|
205
243
|
assert result.total == 150 # 30 + 70 + 50
|
|
206
244
|
assert result.model == "gpt-4"
|
|
207
245
|
|
|
208
|
-
@patch("litellm.
|
|
246
|
+
@patch("litellm.get_model_info")
|
|
209
247
|
@patch("litellm.token_counter")
|
|
210
|
-
def test_count_context_empty_system(self, mock_token_counter,
|
|
248
|
+
def test_count_context_empty_system(self, mock_token_counter, mock_get_model_info):
|
|
211
249
|
mock_token_counter.return_value = 50
|
|
212
|
-
|
|
250
|
+
mock_get_model_info.return_value = {"max_input_tokens": 4096, "max_tokens": 2048}
|
|
213
251
|
|
|
214
252
|
counter = TokenCounter()
|
|
215
253
|
result = counter.count_context(
|
|
@@ -224,11 +262,11 @@ class TestTokenCounter:
|
|
|
224
262
|
assert result.model == "gpt-3.5-turbo"
|
|
225
263
|
assert result.max_tokens == 4096
|
|
226
264
|
|
|
227
|
-
@patch("litellm.
|
|
265
|
+
@patch("litellm.get_model_info")
|
|
228
266
|
@patch("litellm.token_counter")
|
|
229
|
-
def test_count_context_no_max_tokens(self, mock_token_counter,
|
|
267
|
+
def test_count_context_no_max_tokens(self, mock_token_counter, mock_get_model_info):
|
|
230
268
|
mock_token_counter.side_effect = [20, 30]
|
|
231
|
-
|
|
269
|
+
mock_get_model_info.side_effect = Exception("Unknown model")
|
|
232
270
|
|
|
233
271
|
counter = TokenCounter()
|
|
234
272
|
result = counter.count_context(
|
|
@@ -263,12 +301,12 @@ class TestTokenCounter:
|
|
|
263
301
|
# Verify all models were called
|
|
264
302
|
assert mock_token_counter.call_count == len(models)
|
|
265
303
|
|
|
266
|
-
@patch("litellm.
|
|
304
|
+
@patch("litellm.get_model_info")
|
|
267
305
|
@patch("litellm.token_counter")
|
|
268
|
-
def test_count_context_division_by_zero_prevention(self, mock_token_counter,
|
|
306
|
+
def test_count_context_division_by_zero_prevention(self, mock_token_counter, mock_get_model_info):
|
|
269
307
|
"""Test that division by zero is prevented when max_tokens is 0."""
|
|
270
308
|
mock_token_counter.side_effect = [20, 30]
|
|
271
|
-
|
|
309
|
+
mock_get_model_info.return_value = {"max_input_tokens": 0, "max_tokens": 0} # Edge case
|
|
272
310
|
|
|
273
311
|
counter = TokenCounter()
|
|
274
312
|
result = counter.count_context(
|
|
@@ -281,12 +319,12 @@ class TestTokenCounter:
|
|
|
281
319
|
assert result.max_tokens == 0
|
|
282
320
|
assert result.utilization is None # Should be None, not raise ZeroDivisionError
|
|
283
321
|
|
|
284
|
-
@patch("litellm.
|
|
322
|
+
@patch("litellm.get_model_info")
|
|
285
323
|
@patch("litellm.token_counter")
|
|
286
|
-
def test_count_context_empty_history(self, mock_token_counter,
|
|
324
|
+
def test_count_context_empty_history(self, mock_token_counter, mock_get_model_info):
|
|
287
325
|
"""Test counting context with empty history messages."""
|
|
288
326
|
mock_token_counter.return_value = 30 # Only system
|
|
289
|
-
|
|
327
|
+
mock_get_model_info.return_value = {"max_input_tokens": 4096, "max_tokens": 2048}
|
|
290
328
|
|
|
291
329
|
counter = TokenCounter()
|
|
292
330
|
result = counter.count_context(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/agents/atomic_agent.py
RENAMED
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/base/base_io_schema.py
RENAMED
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/base/base_resource.py
RENAMED
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/connectors/__init__.py
RENAMED
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/connectors/mcp/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/context/chat_history.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/atomic_agents/utils/format_tool_message.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/tests/connectors/mcp/test_mcp_factory.py
RENAMED
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/tests/context/test_chat_history.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-agents/tests/utils/test_format_tool_message.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/color_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/screens/main_menu.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-assembler/atomic_assembler/widgets/menu.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/basic-pdf-analysis/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/deep-research/deep_research/config.py
RENAMED
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/deep-research/deep_research/main.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/fastapi-memory/fastapi_memory/client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/fastapi-memory/fastapi_memory/main.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/hooks-example/hooks_example/main.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-client/pyproject.toml
RENAMED
|
File without changes
|
{atomic_agents-2.7.1 → atomic_agents-2.7.3}/atomic-examples/mcp-agent/example-mcp-server/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|