tinygent 0.1.1__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.
- tinygent-0.1.1/.github/images/logo-dark.svg +21 -0
- tinygent-0.1.1/.github/images/logo-light.svg +21 -0
- tinygent-0.1.1/.github/workflows/checks.yml +41 -0
- tinygent-0.1.1/.github/workflows/deploy-docs.yml +38 -0
- tinygent-0.1.1/.github/workflows/publish-pypi.yml +32 -0
- tinygent-0.1.1/.gitignore +210 -0
- tinygent-0.1.1/.python-version +1 -0
- tinygent-0.1.1/CLAUDE.md +129 -0
- tinygent-0.1.1/LICENSE +7 -0
- tinygent-0.1.1/PKG-INFO +193 -0
- tinygent-0.1.1/README.md +142 -0
- tinygent-0.1.1/docs/api-reference.md +623 -0
- tinygent-0.1.1/docs/assets/logo-dark.svg +21 -0
- tinygent-0.1.1/docs/assets/logo-light.svg +21 -0
- tinygent-0.1.1/docs/concepts/agents.md +430 -0
- tinygent-0.1.1/docs/concepts/llms.md +505 -0
- tinygent-0.1.1/docs/concepts/memory.md +539 -0
- tinygent-0.1.1/docs/concepts/middleware.md +819 -0
- tinygent-0.1.1/docs/concepts/tools.md +492 -0
- tinygent-0.1.1/docs/examples.md +600 -0
- tinygent-0.1.1/docs/getting-started.md +347 -0
- tinygent-0.1.1/docs/guides/building-agents.md +399 -0
- tinygent-0.1.1/docs/guides/custom-tools.md +617 -0
- tinygent-0.1.1/docs/index.md +253 -0
- tinygent-0.1.1/docs/stylesheets/extra.css +102 -0
- tinygent-0.1.1/examples/agents/map/README.md +435 -0
- tinygent-0.1.1/examples/agents/map/agent.yaml +19 -0
- tinygent-0.1.1/examples/agents/map/main.py +105 -0
- tinygent-0.1.1/examples/agents/map/prompts.yaml +172 -0
- tinygent-0.1.1/examples/agents/map/quick.py +28 -0
- tinygent-0.1.1/examples/agents/middleware/README.md +122 -0
- tinygent-0.1.1/examples/agents/middleware/llm_tool_selector_example.py +224 -0
- tinygent-0.1.1/examples/agents/middleware/main.py +325 -0
- tinygent-0.1.1/examples/agents/middleware/tool_limiter_example.py +138 -0
- tinygent-0.1.1/examples/agents/multi-step/README.md +194 -0
- tinygent-0.1.1/examples/agents/multi-step/agent.yaml +26 -0
- tinygent-0.1.1/examples/agents/multi-step/main.py +184 -0
- tinygent-0.1.1/examples/agents/multi-step/prompts.yaml +168 -0
- tinygent-0.1.1/examples/agents/multi-step/quick.py +26 -0
- tinygent-0.1.1/examples/agents/react/README.md +191 -0
- tinygent-0.1.1/examples/agents/react/agent.yaml +23 -0
- tinygent-0.1.1/examples/agents/react/main.py +189 -0
- tinygent-0.1.1/examples/agents/react/prompts.yaml +58 -0
- tinygent-0.1.1/examples/agents/react/quick.py +33 -0
- tinygent-0.1.1/examples/agents/squad/README.md +121 -0
- tinygent-0.1.1/examples/agents/squad/agent.yaml +32 -0
- tinygent-0.1.1/examples/agents/squad/main.py +259 -0
- tinygent-0.1.1/examples/agents/squad/prompts/geoghraphic_agent.yaml +168 -0
- tinygent-0.1.1/examples/agents/squad/prompts/weather_agent.yaml +58 -0
- tinygent-0.1.1/examples/agents/squad/prompts.yaml +71 -0
- tinygent-0.1.1/examples/agents/squad/quick.py +26 -0
- tinygent-0.1.1/examples/agents/squad/squad/geoghraphic_agent.yaml +23 -0
- tinygent-0.1.1/examples/agents/squad/squad/weather_agent.yaml +11 -0
- tinygent-0.1.1/examples/chat-app/README.md +1 -0
- tinygent-0.1.1/examples/chat-app/main.py +112 -0
- tinygent-0.1.1/examples/cross-encoder/README.md +354 -0
- tinygent-0.1.1/examples/cross-encoder/main.py +114 -0
- tinygent-0.1.1/examples/embeddings/README.md +102 -0
- tinygent-0.1.1/examples/embeddings/main.py +40 -0
- tinygent-0.1.1/examples/function-calling/README.md +125 -0
- tinygent-0.1.1/examples/function-calling/main.py +54 -0
- tinygent-0.1.1/examples/knowledge-graph/docker-compose.yml +16 -0
- tinygent-0.1.1/examples/knowledge-graph/main.py +184 -0
- tinygent-0.1.1/examples/llm-usage/README.md +146 -0
- tinygent-0.1.1/examples/llm-usage/main.py +165 -0
- tinygent-0.1.1/examples/memory/basic-chat-memory/README.md +19 -0
- tinygent-0.1.1/examples/memory/basic-chat-memory/main.py +61 -0
- tinygent-0.1.1/examples/memory/buffer-summary-memory/README.md +77 -0
- tinygent-0.1.1/examples/memory/buffer-summary-memory/main.py +35 -0
- tinygent-0.1.1/examples/memory/buffer-window-chat-memory/README.md +58 -0
- tinygent-0.1.1/examples/memory/buffer-window-chat-memory/main.py +43 -0
- tinygent-0.1.1/examples/memory/combined-memory/README.md +69 -0
- tinygent-0.1.1/examples/memory/combined-memory/main.py +68 -0
- tinygent-0.1.1/examples/tool-usage/README.md +291 -0
- tinygent-0.1.1/examples/tool-usage/main.py +164 -0
- tinygent-0.1.1/examples/tracing/README.md +61 -0
- tinygent-0.1.1/examples/tracing/docker-compose.yml +13 -0
- tinygent-0.1.1/examples/tracing/main.py +55 -0
- tinygent-0.1.1/mkdocs.yml +134 -0
- tinygent-0.1.1/mypy.ini +5 -0
- tinygent-0.1.1/packages/tiny_anthropic/pyproject.toml +20 -0
- tinygent-0.1.1/packages/tiny_anthropic/src/tiny_anthropic/__init__.py +7 -0
- tinygent-0.1.1/packages/tiny_anthropic/src/tiny_anthropic/llm.py +361 -0
- tinygent-0.1.1/packages/tiny_anthropic/src/tiny_anthropic/register.py +12 -0
- tinygent-0.1.1/packages/tiny_anthropic/src/tiny_anthropic/utils.py +151 -0
- tinygent-0.1.1/packages/tiny_brave/pyproject.toml +21 -0
- tinygent-0.1.1/packages/tiny_brave/src/tiny_brave/__init__.py +31 -0
- tinygent-0.1.1/packages/tiny_brave/src/tiny_brave/client.py +165 -0
- tinygent-0.1.1/packages/tiny_brave/src/tiny_brave/constants.py +7 -0
- tinygent-0.1.1/packages/tiny_brave/src/tiny_brave/datamodels/endpoints.py +8 -0
- tinygent-0.1.1/packages/tiny_brave/src/tiny_brave/datamodels/requests/base.py +72 -0
- tinygent-0.1.1/packages/tiny_brave/src/tiny_brave/datamodels/requests/images.py +23 -0
- tinygent-0.1.1/packages/tiny_brave/src/tiny_brave/datamodels/requests/news.py +81 -0
- tinygent-0.1.1/packages/tiny_brave/src/tiny_brave/datamodels/requests/videos.py +43 -0
- tinygent-0.1.1/packages/tiny_brave/src/tiny_brave/datamodels/requests/web.py +79 -0
- tinygent-0.1.1/packages/tiny_brave/src/tiny_brave/datamodels/responses/images.py +87 -0
- tinygent-0.1.1/packages/tiny_brave/src/tiny_brave/datamodels/responses/news.py +112 -0
- tinygent-0.1.1/packages/tiny_brave/src/tiny_brave/datamodels/responses/videos.py +136 -0
- tinygent-0.1.1/packages/tiny_brave/src/tiny_brave/datamodels/responses/web.py +324 -0
- tinygent-0.1.1/packages/tiny_brave/src/tiny_brave/exceptions.py +10 -0
- tinygent-0.1.1/packages/tiny_brave/src/tiny_brave/register.py +15 -0
- tinygent-0.1.1/packages/tiny_brave/src/tiny_brave/tools.py +71 -0
- tinygent-0.1.1/packages/tiny_chat/build_frontend.py +15 -0
- tinygent-0.1.1/packages/tiny_chat/pyproject.toml +34 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/__init__.py +23 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/chat_context.py +0 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/config.py +6 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/context.py +10 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/emitter.py +23 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/.editorconfig +8 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/.eslintrc-auto-import.json +79 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/.gitattributes +1 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/.gitignore +36 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/.prettierrc.json +6 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/.vscode/extensions.json +8 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/README.md +66 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/env.d.ts +1 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/eslint.config.ts +35 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/index.html +18 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/package-lock.json +5817 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/package.json +46 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/public/favicon.ico +0 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/App.vue +63 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/assets/dark-avatar.png +0 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/assets/dark-logo.png +0 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/assets/light-avatar.png +0 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/assets/light-logo.png +0 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/components/alerts-container.vue +16 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/components/bottom-bar.vue +117 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/components/chat-window.vue +70 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/components/info-drawer.vue +87 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/components/markdown-renderer.vue +30 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/components/message-group.vue +192 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/components/message.vue +19 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/components/messages/base.vue +24 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/components/messages/text-message.vue +9 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/components/nav-drawer.vue +142 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/components/top-bar.vue +15 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/libs/markdown.ts +25 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/main.ts +17 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/services/event-bus.ts +7 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/services/ws-client.ts +127 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/stores/chat-store.ts +65 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/stores/state-store.ts +21 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/types/auto-imports.d.ts +73 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/types/messages.d.ts +74 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/types/roles.d.ts +1 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/types/vuetify.d.ts +2 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/src/utils/message-utils.ts +19 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/tsconfig.app.json +17 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/tsconfig.json +11 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/tsconfig.node.json +19 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/frontend/vite.config.ts +24 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/helpers.py +21 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/http.py +15 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/message.py +78 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/runtime.py +21 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/server.py +47 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/session.py +58 -0
- tinygent-0.1.1/packages/tiny_chat/src/tiny_chat/ws.py +109 -0
- tinygent-0.1.1/packages/tiny_gemini/pyproject.toml +20 -0
- tinygent-0.1.1/packages/tiny_gemini/src/tiny_gemini/__init__.py +11 -0
- tinygent-0.1.1/packages/tiny_gemini/src/tiny_gemini/embedder.py +168 -0
- tinygent-0.1.1/packages/tiny_gemini/src/tiny_gemini/llm.py +402 -0
- tinygent-0.1.1/packages/tiny_gemini/src/tiny_gemini/register.py +12 -0
- tinygent-0.1.1/packages/tiny_gemini/src/tiny_gemini/types.py +9 -0
- tinygent-0.1.1/packages/tiny_gemini/src/tiny_gemini/utils.py +251 -0
- tinygent-0.1.1/packages/tiny_graph/pyproject.toml +17 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/__init__.py +5 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/driver/__init__.py +5 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/driver/base.py +21 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/driver/neo4j.py +60 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/edge.py +40 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/__init__.py +5 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/base.py +37 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/__init__.py +5 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/core/edge.py +14 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/core/node.py +27 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/datamodels/clients.py +18 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/datamodels/extract_nodes.py +23 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/edges.py +184 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/multi_layer_graph.py +527 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/nodes.py +211 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/ops/cluster_operations.py +165 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/ops/edge_operations.py +995 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/ops/graph_operations.py +31 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/ops/node_operations.py +666 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/prompts/clusters.py +92 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/prompts/default_prompts.py +120 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/prompts/edges.py +229 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/prompts/nodes.py +108 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/queries/cluster_queries.py +21 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/queries/edge_queries.py +176 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/queries/graph_queries.py +127 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/queries/node_queries.py +179 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/search/__init__.py +13 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/search/search.py +276 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/search/search_cfg.py +119 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/search/search_presets.py +32 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/search/search_ranker.py +29 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/search/search_utils.py +420 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/types.py +18 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/utils/custom_types.py +20 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/utils/model_repr.py +13 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/utils/node_formatter.py +20 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/graph/multi_layer_graph/utils/text_similarity.py +161 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/helper.py +46 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/node.py +42 -0
- tinygent-0.1.1/packages/tiny_graph/src/tiny_graph/types/provider.py +5 -0
- tinygent-0.1.1/packages/tiny_mistralai/pyproject.toml +22 -0
- tinygent-0.1.1/packages/tiny_mistralai/src/tiny_mistralai/__init__.py +11 -0
- tinygent-0.1.1/packages/tiny_mistralai/src/tiny_mistralai/embedder.py +178 -0
- tinygent-0.1.1/packages/tiny_mistralai/src/tiny_mistralai/llm.py +399 -0
- tinygent-0.1.1/packages/tiny_mistralai/src/tiny_mistralai/register.py +15 -0
- tinygent-0.1.1/packages/tiny_mistralai/src/tiny_mistralai/types.py +8 -0
- tinygent-0.1.1/packages/tiny_mistralai/src/tiny_mistralai/utils.py +265 -0
- tinygent-0.1.1/packages/tiny_openai/pyproject.toml +22 -0
- tinygent-0.1.1/packages/tiny_openai/src/tiny_openai/__init__.py +11 -0
- tinygent-0.1.1/packages/tiny_openai/src/tiny_openai/embedder.py +179 -0
- tinygent-0.1.1/packages/tiny_openai/src/tiny_openai/llm.py +391 -0
- tinygent-0.1.1/packages/tiny_openai/src/tiny_openai/register.py +15 -0
- tinygent-0.1.1/packages/tiny_openai/src/tiny_openai/utils.py +238 -0
- tinygent-0.1.1/packages/tiny_voyageai/pyproject.toml +20 -0
- tinygent-0.1.1/packages/tiny_voyageai/src/tiny_voyageai/__init__.py +11 -0
- tinygent-0.1.1/packages/tiny_voyageai/src/tiny_voyageai/cross_encoder.py +150 -0
- tinygent-0.1.1/packages/tiny_voyageai/src/tiny_voyageai/embedder.py +184 -0
- tinygent-0.1.1/packages/tiny_voyageai/src/tiny_voyageai/register.py +17 -0
- tinygent-0.1.1/pyproject.toml +91 -0
- tinygent-0.1.1/ruff.toml +20 -0
- tinygent-0.1.1/scripts/docs.py +10 -0
- tinygent-0.1.1/scripts/fmt.py +9 -0
- tinygent-0.1.1/scripts/lint.py +9 -0
- tinygent-0.1.1/scripts/run_commands.py +12 -0
- tinygent-0.1.1/tinygent/__init__.py +0 -0
- tinygent-0.1.1/tinygent/agents/__init__.py +109 -0
- tinygent-0.1.1/tinygent/agents/base_agent.py +291 -0
- tinygent-0.1.1/tinygent/agents/map_agent.py +795 -0
- tinygent-0.1.1/tinygent/agents/middleware/README.md +201 -0
- tinygent-0.1.1/tinygent/agents/middleware/__init__.py +17 -0
- tinygent-0.1.1/tinygent/agents/middleware/agent.py +154 -0
- tinygent-0.1.1/tinygent/agents/middleware/base.py +107 -0
- tinygent-0.1.1/tinygent/agents/middleware/llm_tool_selector.py +197 -0
- tinygent-0.1.1/tinygent/agents/middleware/register.py +25 -0
- tinygent-0.1.1/tinygent/agents/middleware/tool_limiter.py +215 -0
- tinygent-0.1.1/tinygent/agents/multi_step_agent.py +462 -0
- tinygent-0.1.1/tinygent/agents/react_agent.py +458 -0
- tinygent-0.1.1/tinygent/agents/register.py +22 -0
- tinygent-0.1.1/tinygent/agents/squad_agent.py +375 -0
- tinygent-0.1.1/tinygent/cli/builder.py +27 -0
- tinygent-0.1.1/tinygent/cli/commands/terminal.py +45 -0
- tinygent-0.1.1/tinygent/cli/entry_point.py +67 -0
- tinygent-0.1.1/tinygent/cli/main.py +15 -0
- tinygent-0.1.1/tinygent/cli/utils.py +119 -0
- tinygent-0.1.1/tinygent/core/__init__.py +0 -0
- tinygent-0.1.1/tinygent/core/chat_history.py +92 -0
- tinygent-0.1.1/tinygent/core/datamodels/__init__.py +0 -0
- tinygent-0.1.1/tinygent/core/datamodels/agent.py +57 -0
- tinygent-0.1.1/tinygent/core/datamodels/agent_hooks.py +49 -0
- tinygent-0.1.1/tinygent/core/datamodels/cross_encoder.py +40 -0
- tinygent-0.1.1/tinygent/core/datamodels/embedder.py +63 -0
- tinygent-0.1.1/tinygent/core/datamodels/llm.py +121 -0
- tinygent-0.1.1/tinygent/core/datamodels/memory.py +70 -0
- tinygent-0.1.1/tinygent/core/datamodels/messages.py +294 -0
- tinygent-0.1.1/tinygent/core/datamodels/middleware.py +107 -0
- tinygent-0.1.1/tinygent/core/datamodels/tool.py +62 -0
- tinygent-0.1.1/tinygent/core/datamodels/tool_info.py +196 -0
- tinygent-0.1.1/tinygent/core/factory/__init__.py +17 -0
- tinygent-0.1.1/tinygent/core/factory/agent.py +120 -0
- tinygent-0.1.1/tinygent/core/factory/cross_encoder.py +98 -0
- tinygent-0.1.1/tinygent/core/factory/embedder.py +48 -0
- tinygent-0.1.1/tinygent/core/factory/helper.py +68 -0
- tinygent-0.1.1/tinygent/core/factory/llm.py +50 -0
- tinygent-0.1.1/tinygent/core/factory/memory.py +31 -0
- tinygent-0.1.1/tinygent/core/factory/middleware.py +70 -0
- tinygent-0.1.1/tinygent/core/factory/tool.py +36 -0
- tinygent-0.1.1/tinygent/core/prompt.py +55 -0
- tinygent-0.1.1/tinygent/core/prompts/agents/__init__.py +0 -0
- tinygent-0.1.1/tinygent/core/prompts/agents/factory/map_agent.py +59 -0
- tinygent-0.1.1/tinygent/core/prompts/agents/factory/multi_agent.py +409 -0
- tinygent-0.1.1/tinygent/core/prompts/agents/factory/react_agent.py +165 -0
- tinygent-0.1.1/tinygent/core/prompts/agents/factory/squad_agent.py +158 -0
- tinygent-0.1.1/tinygent/core/prompts/agents/middleware/factory/llm_tool_selector.py +31 -0
- tinygent-0.1.1/tinygent/core/prompts/agents/middleware/template/llm_tool_selector.py +5 -0
- tinygent-0.1.1/tinygent/core/prompts/agents/template/map_agent.py +75 -0
- tinygent-0.1.1/tinygent/core/prompts/agents/template/multi_agent.py +42 -0
- tinygent-0.1.1/tinygent/core/prompts/agents/template/react_agent.py +35 -0
- tinygent-0.1.1/tinygent/core/prompts/agents/template/squad_agent.py +16 -0
- tinygent-0.1.1/tinygent/core/prompts/cross_encoders/factory/llm_cross_encoder.py +40 -0
- tinygent-0.1.1/tinygent/core/prompts/cross_encoders/template/llm_cross_encoder.py +11 -0
- tinygent-0.1.1/tinygent/core/prompts/memory/factory/buffer_summary_chat_memory.py +26 -0
- tinygent-0.1.1/tinygent/core/prompts/memory/template/buffer_summary_chat_memory.py +5 -0
- tinygent-0.1.1/tinygent/core/runtime/__init__.py +0 -0
- tinygent-0.1.1/tinygent/core/runtime/executors.py +118 -0
- tinygent-0.1.1/tinygent/core/runtime/global_registry.py +284 -0
- tinygent-0.1.1/tinygent/core/runtime/middleware_catalog.py +45 -0
- tinygent-0.1.1/tinygent/core/runtime/tool_catalog.py +74 -0
- tinygent-0.1.1/tinygent/core/telemetry/decorators.py +69 -0
- tinygent-0.1.1/tinygent/core/telemetry/otel.py +72 -0
- tinygent-0.1.1/tinygent/core/telemetry/utils.py +96 -0
- tinygent-0.1.1/tinygent/core/types/__init__.py +15 -0
- tinygent-0.1.1/tinygent/core/types/base.py +18 -0
- tinygent-0.1.1/tinygent/core/types/builder.py +63 -0
- tinygent-0.1.1/tinygent/core/types/discriminator.py +6 -0
- tinygent-0.1.1/tinygent/core/types/io/llm_io_chunks.py +46 -0
- tinygent-0.1.1/tinygent/core/types/io/llm_io_input.py +23 -0
- tinygent-0.1.1/tinygent/core/types/io/llm_io_result.py +54 -0
- tinygent-0.1.1/tinygent/cross_encoders/llm_cross_encoder.py +177 -0
- tinygent-0.1.1/tinygent/cross_encoders/register.py +12 -0
- tinygent-0.1.1/tinygent/llms/__init__.py +3 -0
- tinygent-0.1.1/tinygent/llms/utils.py +115 -0
- tinygent-0.1.1/tinygent/logging.py +64 -0
- tinygent-0.1.1/tinygent/memory/__init__.py +13 -0
- tinygent-0.1.1/tinygent/memory/base_chat_memory.py +38 -0
- tinygent-0.1.1/tinygent/memory/buffer_chat_memory.py +55 -0
- tinygent-0.1.1/tinygent/memory/buffer_summary_chat_memory.py +154 -0
- tinygent-0.1.1/tinygent/memory/buffer_window_chat_memory.py +68 -0
- tinygent-0.1.1/tinygent/memory/combined_memory.py +97 -0
- tinygent-0.1.1/tinygent/memory/register.py +25 -0
- tinygent-0.1.1/tinygent/prompts/__init__.py +87 -0
- tinygent-0.1.1/tinygent/prompts/map.py +23 -0
- tinygent-0.1.1/tinygent/prompts/middleware.py +31 -0
- tinygent-0.1.1/tinygent/prompts/multistep.py +55 -0
- tinygent-0.1.1/tinygent/prompts/react.py +53 -0
- tinygent-0.1.1/tinygent/prompts/squad.py +23 -0
- tinygent-0.1.1/tinygent/tools/__init__.py +27 -0
- tinygent-0.1.1/tinygent/tools/jit_tool.py +204 -0
- tinygent-0.1.1/tinygent/tools/reasoning_tool.py +225 -0
- tinygent-0.1.1/tinygent/tools/register.py +18 -0
- tinygent-0.1.1/tinygent/tools/tool.py +245 -0
- tinygent-0.1.1/tinygent/utils/__init__.py +13 -0
- tinygent-0.1.1/tinygent/utils/color_printer.py +39 -0
- tinygent-0.1.1/tinygent/utils/jinja_utils.py +17 -0
- tinygent-0.1.1/tinygent/utils/pydantic_utils.py +7 -0
- tinygent-0.1.1/tinygent/utils/schema_validator.py +12 -0
- tinygent-0.1.1/tinygent/utils/yaml.py +53 -0
- tinygent-0.1.1/uv.lock +2151 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
version="1.1"
|
|
6
|
+
id="svg544471"
|
|
7
|
+
width="290.23999"
|
|
8
|
+
height="96"
|
|
9
|
+
viewBox="0 0 290.23999 96"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
|
12
|
+
<defs
|
|
13
|
+
id="defs544475" />
|
|
14
|
+
<g
|
|
15
|
+
id="g544477">
|
|
16
|
+
<path
|
|
17
|
+
style="fill:#000000;stroke-width:0.32"
|
|
18
|
+
d="m 10.570776,87.843937 v -8.16 H 8.3097383 c -2.9472986,0 -3.4989629,-0.30449 -3.4989629,-1.93125 0,-1.26106 -0.00755,-1.26875 -1.2457634,-1.26875 -0.8407764,0 -1.3089082,-0.16455 -1.44,-0.50617 -0.10683,-0.27839 -0.1942364,-3.369331 -0.1942364,-6.868741 0,-5.96298 0.038873,-6.38337 0.6189627,-6.69383 0.3404295,-0.18219 0.9797367,-0.33126 1.4206829,-0.33126 0.6954429,0 0.8148861,-0.15907 0.9010374,-1.2 0.096176,-1.16205 0.1417667,-1.20308 1.4417747,-1.29754 1.3298467,-0.0966 1.343374,-0.11015 1.44,-1.44 0.096847,-1.33289 0.1072348,-1.34316 1.457542,-1.44086 1.1923427,-0.0863 1.3600007,-0.19248 1.3600007,-0.8616 0,-0.66911 -0.167658,-0.77533 -1.3600007,-0.8616 -1.3161718,-0.0952 -1.363167,-0.13651 -1.4582732,-1.28089 -0.094871,-1.14155 -0.1447271,-1.18587 -1.44,-1.28 l -1.3417267,-0.0975 -0.089288,-4.239996 -0.089288,-4.24 H 3.5275841 c -1.0841969,0 -1.2934446,-0.114867 -1.4666911,-0.805136 -0.1111418,-0.442822 -0.1273665,-1.090822 -0.036055,-1.44 C 2.1664162,41.057419 2.030378,40.96395 1.1008173,40.96395 H 0.01077563 v -5.44 -5.44 h 2.38537917 2.385379 l 0.094621,-2.16 0.094621,-2.16 1.52,-0.09753 c 1.2589683,-0.08078 1.5199999,-0.204431 1.5199999,-0.72 0,-0.522159 -0.2265321,-0.622467 -1.4057634,-0.622467 -1.4890086,0 -1.7942365,-0.303856 -1.7942365,-1.786172 0,-0.662108 -0.1524576,-0.773828 -1.0559999,-0.773828 -0.5807999,0 -1.2287999,-0.1728 -1.4399999,-0.384 -0.5209486,-0.520948 -0.5209486,-6.071052 0,-6.592 0.2569471,-0.256951 1.6833803,-0.384003 4.3112131,-0.384003 h 3.9272139 l 0.08879,-4.5600008 0.08879,-4.56 1.52,-0.09753 1.52,-0.09753 v -1.228231 c 0,-1.332103 0.342599,-1.616703 1.946171,-1.616703 0.853899,0 0.933828,-0.09586 0.933828,-1.12 V 0.00395525 h 13.28 13.28 l -3.2e-4,1.19999995 c -3.2e-4,1.198553 0.0013,1.2 1.359999,1.2 h 1.360413 l 0.09484,1.454011 0.09484,1.454012 1.109568,-0.129536 c 1.90993,-0.222985 2.060662,0.138401 2.060662,4.9406958 v 4.280818 h 4.120819 c 3.140739,0 4.2092,0.106496 4.492432,0.447771 0.239843,0.288993 0.338842,1.508804 0.279184,3.44 l -0.09243,2.992229 -1.502422,0.09681 -1.502423,0.09682 -0.09758,1.343184 c -0.09689,1.33374 -0.107143,1.343877 -1.457578,1.441584 -0.898006,0.06497 -1.36,0.248956 -1.36,0.541601 0,0.292645 0.461994,0.476628 1.36,0.541601 1.309123,0.09472 1.36361,0.141513 1.456483,1.250873 0.08619,1.029547 0.179427,1.136618 0.87409,1.003826 0.42768,-0.08176 1.143296,-0.05687 1.590253,0.05531 l 0.812652,0.203963 -0.08674,6.312213 -0.08674,6.312211 -1.512848,0.09724 -1.512848,0.09724 -0.08715,5.822759 -0.08715,5.822761 -1.36,0.0984 c -1.353389,0.0979 -1.36,0.10453 -1.36,1.36 v 1.2616 h -1.44 c -1.313625,0 -1.44,0.0686 -1.44,0.7816 0,0.69077 0.158061,0.79304 1.36,0.88 1.350307,0.0977 1.360695,0.10797 1.457543,1.44086 0.09662,1.32985 0.110153,1.34338 1.44,1.44 1.322569,0.0961 1.343875,0.11684 1.438038,1.39983 0.09036,1.23127 0.145085,1.29503 1.003251,1.16908 0.499219,-0.0733 1.214998,0.0313 1.590621,0.23228 0.669309,0.35821 0.681225,0.50419 0.596749,7.31093 l -0.0862,6.945425 -1.502422,0.0968 -1.502423,0.0968 -0.09758,1.34319 -0.09758,1.34318 -2.8,0.0925 -2.8,0.0925 v 5.42753 5.42754 h -1.44 c -1.380412,0 -1.44,0.039 -1.44,0.9416 0,0.879 0.09042,0.94815 1.36,1.04 l 1.36,0.0984 0.09672,1.68 0.09672,1.68 -9.056723,3.2e-4 -9.056723,5.9e-4 0.10543,-4.16046 0.10543,-4.16045 h -2.42543 -2.42543 v 2.3816 2.3816 l 1.36,0.0984 1.36,0.0984 0.09672,1.68 0.09672,1.68 h -9.456713 -9.456723 z m 12.2216,0.08 c 0.09792,-1.35339 0.105011,-1.36047 1.458399,-1.4584 1.35505,-0.098 1.36,-0.10302 1.36,-1.36855 v -1.27016 l 4.72,0.0886 4.72,0.0885 0.09294,2.64 0.09294,2.64 h 5.107059 5.107059 v -3.52 -3.52 h -15.359999 -15.36 v 3.52 3.52 h 3.981601 3.9816 z m 8.578399,-12.4 c 0,-0.81066 -0.124445,-0.96 -0.8,-0.96 -0.675556,0 -0.8,0.14934 -0.8,0.96 0,0.81067 0.124444,0.96 0.8,0.96 0.675555,0 0.8,-0.14933 0.8,-0.96 z m 22.719999,-1.12 v -1.440001 h -1.44 -1.44 v -4.76499 -4.76499 l -1.12,-0.13075 -1.12,-0.13075 v 6.33574 6.335741 h 2.56 2.56 z m -40.89338,-4.959641 c -0.0885,-5.76286 -0.125655,-6.08036 -0.711445,-6.08036 -0.578815,0 -0.623688,0.29974 -0.706619,4.72 l -0.08855,4.72 -2.7273697,0.0914 -2.7273692,0.0914 0.1209805,1.268601 0.1209805,1.2686 3.406389,3.2e-4 3.4063889,3.2e-4 -0.09338,-6.080351 z m 18.333381,-0.16036 c 0,-1.00848 -0.08762,-1.12 -0.88,-1.12 -0.792381,0 -0.88,0.11152 -0.88,1.12 0,1.00849 0.08762,1.12 0.88,1.12 0.792381,0 0.88,-0.11151 0.88,-1.12 z m -2.72,-5.93596 v -1.29598 l 1.84,0.096 1.84,0.096 0.09932,1.2 c 0.08538,1.03161 0.208864,1.2 0.88,1.2 0.674186,0 0.780682,-0.14811 0.780682,-1.08576 0,-1.16353 0.39352,-1.47436 1.866173,-1.47406 0.845472,1.7e-4 0.853363,-0.021 0.806486,-2.16 -0.04468,-2.03858 -0.08953,-2.16018 -0.79686,-2.16018 -0.582659,0 -0.786384,0.21372 -0.915129,0.96 l -0.165616,0.96 -3.117528,0.0916 -3.117528,0.0916 v -1.13159 -1.13159 h -2.56 -2.56 v 2.37005 c 0,2.2061 0.04391,2.35855 0.634865,2.20402 0.349176,-0.0913 0.997176,-0.0751 1.44,0.0361 0.66728,0.16747 0.805135,0.39279 0.805135,1.31598 0,1.05969 0.0545,1.1139 1.12,1.1139 1.095634,0 1.12,-0.0282 1.12,-1.29597 z m 19.199999,-10.86404 v -1.6 h 1.6 1.6 v -3.519996 -3.52 h -6.4 -6.399999 v 0.7816 c 0,0.690762 0.15806,0.793037 1.36,0.88 l 1.36,0.0984 0.09753,1.52 c 0.09242,1.440253 0.146061,1.52 1.022468,1.52 0.876406,0 0.930051,-0.07975 1.022467,-1.52 0.09734,-1.517027 0.09998,-1.520202 1.34703,-1.622269 0.687222,-0.05625 1.594275,-0.01574 2.01567,0.09003 0.711712,0.178627 0.759373,0.322371 0.670503,2.022266 l -0.09567,1.829971 -1.342457,0.09754 c -1.329847,0.09662 -1.343376,0.110158 -1.44,1.439998 l -0.09754,1.34246 h -4.959999 -4.96 l -0.09932,-1.2 -0.09931,-1.2 H 32.011738 29.81133 l -0.100274,1.04 -0.100275,1.04 -5.2,0.0879 -5.2,0.0879 v -1.1086 c 0,-1.05008 -0.06336,-1.11386 -1.2,-1.20793 l -1.2,-0.0993 -0.09527,-2.000001 -0.09527,-2 h 2.09527 2.095269 v 1.44 c 0,1.386666 0.03556,1.44 0.96,1.44 0.924445,0 0.96,-0.05333 0.96,-1.44 v -1.44 h 1.44 c 1.384296,0 1.44,-0.03686 1.44,-0.952938 v -0.95294 l -6,-0.08706 -6.000002,-0.08707 -0.09753,-1.52 -0.09753,-1.52 h -1.262467 -1.262466 v -3.04 -3.04 l -0.88,-1.22e-4 -0.8800007,-1.18e-4 v 8.240118 8.240118 l 1.2800007,0.16 c 1.247866,0.15599 1.28247,0.19414 1.378399,1.52 l 0.0984,1.36 h 18.0616 18.0616 z M 37.130775,41.76394 c 0,-1.093334 -0.03046,-1.12 -1.28,-1.12 h -1.28 v -3.04 -3.04 h -2.547991 -2.547992 l -0.09201,2.96 -0.09201,2.96 -1.36,0.0984 c -1.31757,0.09533 -1.36,0.132768 -1.36,1.2 v 1.1016 h 5.28 5.28 z m -31.9999996,-4.64 c 0,-2.517334 -0.013334,-2.56 -0.7999999,-2.56 -0.7866666,0 -0.8,0.04267 -0.8,2.56 0,2.517334 0.013334,2.56 0.8,2.56 0.7866665,0 0.7999999,-0.04267 0.7999999,-2.56 z m 20.4799996,-1.6 v -4.16 h -5.44 -5.44 v 4.16 4.16 h 5.44 5.44 z m -5.748741,1.301037 c -0.372215,-0.695491 -0.41862,-1.742266 -0.125712,-2.835776 0.179848,-0.671427 0.351814,-0.726579 1.99563,-0.64 l 1.798823,0.09474 0.09855,1.544861 c 0.125081,1.960802 -0.286972,2.455138 -2.046473,2.455138 -1.046311,0 -1.471386,-0.152896 -1.720818,-0.618963 z m 31.34907,-1.381037 3.29e-4,-4.24 -6.400329,0.09285 -6.400329,0.09285 v 4.147148 4.147152 h 6.399999 6.4 l 3.2e-4,-4.24 z m -10.818777,1.724813 c -0.282346,-0.179069 -0.386426,-0.827981 -0.32,-1.995101 l 0.09845,-1.729712 h 3.04 3.039999 l 0.09845,1.729712 c 0.06643,1.16712 -0.03765,1.816032 -0.32,1.995101 -0.230147,0.145961 -1.498448,0.265385 -2.818447,0.265385 -1.32,0 -2.588301,-0.119424 -2.818448,-0.265385 z m -29.760868,-8.284813 0.09932,-1.2 8.639999,-0.08985 c 4.752,-0.04942 8.964,-0.01067 9.36,0.0861 0.575076,0.140534 0.72,0.400161 0.72,1.289854 v 1.113896 h 2.4 c 2.212125,0 2.4,-0.05175 2.4,-0.661037 0,-0.363571 0.149065,-0.939571 0.331257,-1.28 0.314192,-0.587074 0.751085,-0.618963 8.48,-0.618963 5.219162,0 8.148742,-0.115044 8.148742,-0.32 0,-0.176 -0.648,-0.32 -1.44,-0.32 h -1.44 l 6.1e-5,-1.36 5.8e-5,-1.36 -18.240058,0.08518 -18.240059,0.08517 v 1.050823 c 0,1.330215 -0.489998,1.818822 -1.824,1.818822 -1.0382227,0 -1.0560007,0.02424 -1.0560007,1.44 0,1.313165 0.06876,1.44 0.780683,1.44 0.6711337,0 0.7946207,-0.168391 0.8800007,-1.2 z M 75.850773,50.403936 V 39.36394 h -3.679999 -3.68 v -1.92 -1.92 h 11.199999 11.2 v 1.92 1.92 h -3.68 -3.68 v 11.039996 11.04 h -3.84 -3.84 z m 25.599997,9.12 v -1.92 h 3.68 3.68 v -9.119996 -9.12 h -3.68 -3.68 v -1.92 -1.92 h 11.2 11.2 v 1.92 1.92 h -3.68 -3.68 v 9.12 9.119996 h 3.68 3.68 v 1.92 1.92 h -11.2 -11.2 z m 25.92,-11.039996 v -12.96 h 3.68 3.68 v 1.92 1.92 h 1.92 1.92 v 1.76 1.76 h 1.92 1.92 v 1.92 1.92 h 1.6 1.59999 v -5.6 -5.6 h 3.84 3.84 v 12.96 12.959996 h -3.68 -3.68 v -1.76 -1.76 h -1.91999 -1.92 v -1.92 -1.92 h -1.92 -1.92 v -1.76 -1.76 h -1.6 -1.6 v 5.44 5.44 h -3.84 -3.84 z m 37.75999,7.359996 v -5.6 h -1.92 -1.92 v -1.759996 -1.76 h -1.92 -1.92 v -5.6 -5.6 h 3.84 3.84 v 5.44 5.44 h 3.52 3.52 v -5.44 -5.44 h 3.84 3.84 v 5.44 5.44 h -1.76 -1.76 v 1.92 1.919996 h -1.76 -1.76 v 5.6 5.6 h -3.84 -3.84 z m 26.56,3.84 v -1.76 h -1.92 -1.92 v -1.76 -1.76 h -1.76 -1.76 v -5.759996 -5.76 h 1.76 1.76 v -1.76 -1.76 h 1.76 1.76 v -1.92 -1.92 h 9.44 9.44 v 1.92 1.92 h -7.2 -7.2 v 1.76 1.76 h -1.92 -1.92 v 5.6 5.599996 h 1.76 1.76 v 1.76 1.76 h 3.52 3.52 v -3.52 -3.52 h -1.76 -1.76 v -1.919996 -1.92 h 5.6 5.6 v 7.359996 7.36 h -9.28 -9.28 z m 21.12,-11.199996 v -12.96 h 13.28 13.28 v 1.92 1.92 h -9.28 -9.28 v 3.52 3.52 h 5.44 5.44 v 1.92 1.919996 h -5.44 -5.44 v 3.68 3.68 h 9.28 9.28 v 1.92 1.92 h -13.28 -13.28 z m 28.48,0 v -12.96 h 3.68 3.68 v 1.92 1.92 h 1.92 1.92 v 1.76 1.76 h 1.92 1.92 v 1.92 1.92 h 1.6 1.6 v -5.6 -5.6 h 3.84 3.84 v 12.96 12.959996 h -3.68 -3.68 v -1.76 -1.76 h -1.92 -1.92 v -1.92 -1.92 h -1.92 -1.92 v -1.76 -1.76 h -1.6 -1.6 v 5.44 5.44 h -3.84 -3.84 z m 33.92,1.919996 V 39.36394 h -3.68 -3.68 v -1.92 -1.92 h 11.2 11.2 v 1.92 1.92 h -3.68 -3.68 v 11.039996 11.04 h -3.84 -3.84 z"
|
|
19
|
+
id="path544481" />
|
|
20
|
+
</g>
|
|
21
|
+
</svg>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
version="1.1"
|
|
6
|
+
id="svg544471"
|
|
7
|
+
width="290.23999"
|
|
8
|
+
height="96"
|
|
9
|
+
viewBox="0 0 290.23999 96"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
|
12
|
+
<defs
|
|
13
|
+
id="defs544475" />
|
|
14
|
+
<g
|
|
15
|
+
id="g544477">
|
|
16
|
+
<path
|
|
17
|
+
style="fill:#ffffff;stroke-width:0.32"
|
|
18
|
+
d="m 10.570776,87.843937 v -8.16 H 8.3097383 c -2.9472986,0 -3.4989629,-0.30449 -3.4989629,-1.93125 0,-1.26106 -0.00755,-1.26875 -1.2457634,-1.26875 -0.8407764,0 -1.3089082,-0.16455 -1.44,-0.50617 -0.10683,-0.27839 -0.1942364,-3.369331 -0.1942364,-6.868741 0,-5.96298 0.038873,-6.38337 0.6189627,-6.69383 0.3404295,-0.18219 0.9797367,-0.33126 1.4206829,-0.33126 0.6954429,0 0.8148861,-0.15907 0.9010374,-1.2 0.096176,-1.16205 0.1417667,-1.20308 1.4417747,-1.29754 1.3298467,-0.0966 1.343374,-0.11015 1.44,-1.44 0.096847,-1.33289 0.1072348,-1.34316 1.457542,-1.44086 1.1923427,-0.0863 1.3600007,-0.19248 1.3600007,-0.8616 0,-0.66911 -0.167658,-0.77533 -1.3600007,-0.8616 -1.3161718,-0.0952 -1.363167,-0.13651 -1.4582732,-1.28089 -0.094871,-1.14155 -0.1447271,-1.18587 -1.44,-1.28 l -1.3417267,-0.0975 -0.089288,-4.239996 -0.089288,-4.24 H 3.5275841 c -1.0841969,0 -1.2934446,-0.114867 -1.4666911,-0.805136 -0.1111418,-0.442822 -0.1273665,-1.090822 -0.036055,-1.44 C 2.1664162,41.057419 2.030378,40.96395 1.1008173,40.96395 H 0.01077563 v -5.44 -5.44 h 2.38537917 2.385379 l 0.094621,-2.16 0.094621,-2.16 1.52,-0.09753 c 1.2589683,-0.08078 1.5199999,-0.204431 1.5199999,-0.72 0,-0.522159 -0.2265321,-0.622467 -1.4057634,-0.622467 -1.4890086,0 -1.7942365,-0.303856 -1.7942365,-1.786172 0,-0.662108 -0.1524576,-0.773828 -1.0559999,-0.773828 -0.5807999,0 -1.2287999,-0.1728 -1.4399999,-0.384 -0.5209486,-0.520948 -0.5209486,-6.071052 0,-6.592 0.2569471,-0.256951 1.6833803,-0.384003 4.3112131,-0.384003 h 3.9272139 l 0.08879,-4.5600008 0.08879,-4.56 1.52,-0.09753 1.52,-0.09753 v -1.228231 c 0,-1.332103 0.342599,-1.616703 1.946171,-1.616703 0.853899,0 0.933828,-0.09586 0.933828,-1.12 V 0.00395525 h 13.28 13.28 l -3.2e-4,1.19999995 c -3.2e-4,1.198553 0.0013,1.2 1.359999,1.2 h 1.360413 l 0.09484,1.454011 0.09484,1.454012 1.109568,-0.129536 c 1.90993,-0.222985 2.060662,0.138401 2.060662,4.9406958 v 4.280818 h 4.120819 c 3.140739,0 4.2092,0.106496 4.492432,0.447771 0.239843,0.288993 0.338842,1.508804 0.279184,3.44 l -0.09243,2.992229 -1.502422,0.09681 -1.502423,0.09682 -0.09758,1.343184 c -0.09689,1.33374 -0.107143,1.343877 -1.457578,1.441584 -0.898006,0.06497 -1.36,0.248956 -1.36,0.541601 0,0.292645 0.461994,0.476628 1.36,0.541601 1.309123,0.09472 1.36361,0.141513 1.456483,1.250873 0.08619,1.029547 0.179427,1.136618 0.87409,1.003826 0.42768,-0.08176 1.143296,-0.05687 1.590253,0.05531 l 0.812652,0.203963 -0.08674,6.312213 -0.08674,6.312211 -1.512848,0.09724 -1.512848,0.09724 -0.08715,5.822759 -0.08715,5.822761 -1.36,0.0984 c -1.353389,0.0979 -1.36,0.10453 -1.36,1.36 v 1.2616 h -1.44 c -1.313625,0 -1.44,0.0686 -1.44,0.7816 0,0.69077 0.158061,0.79304 1.36,0.88 1.350307,0.0977 1.360695,0.10797 1.457543,1.44086 0.09662,1.32985 0.110153,1.34338 1.44,1.44 1.322569,0.0961 1.343875,0.11684 1.438038,1.39983 0.09036,1.23127 0.145085,1.29503 1.003251,1.16908 0.499219,-0.0733 1.214998,0.0313 1.590621,0.23228 0.669309,0.35821 0.681225,0.50419 0.596749,7.31093 l -0.0862,6.945425 -1.502422,0.0968 -1.502423,0.0968 -0.09758,1.34319 -0.09758,1.34318 -2.8,0.0925 -2.8,0.0925 v 5.42753 5.42754 h -1.44 c -1.380412,0 -1.44,0.039 -1.44,0.9416 0,0.879 0.09042,0.94815 1.36,1.04 l 1.36,0.0984 0.09672,1.68 0.09672,1.68 -9.056723,3.2e-4 -9.056723,5.9e-4 0.10543,-4.16046 0.10543,-4.16045 h -2.42543 -2.42543 v 2.3816 2.3816 l 1.36,0.0984 1.36,0.0984 0.09672,1.68 0.09672,1.68 h -9.456713 -9.456723 z m 12.2216,0.08 c 0.09792,-1.35339 0.105011,-1.36047 1.458399,-1.4584 1.35505,-0.098 1.36,-0.10302 1.36,-1.36855 v -1.27016 l 4.72,0.0886 4.72,0.0885 0.09294,2.64 0.09294,2.64 h 5.107059 5.107059 v -3.52 -3.52 h -15.359999 -15.36 v 3.52 3.52 h 3.981601 3.9816 z m 8.578399,-12.4 c 0,-0.81066 -0.124445,-0.96 -0.8,-0.96 -0.675556,0 -0.8,0.14934 -0.8,0.96 0,0.81067 0.124444,0.96 0.8,0.96 0.675555,0 0.8,-0.14933 0.8,-0.96 z m 22.719999,-1.12 v -1.440001 h -1.44 -1.44 v -4.76499 -4.76499 l -1.12,-0.13075 -1.12,-0.13075 v 6.33574 6.335741 h 2.56 2.56 z m -40.89338,-4.959641 c -0.0885,-5.76286 -0.125655,-6.08036 -0.711445,-6.08036 -0.578815,0 -0.623688,0.29974 -0.706619,4.72 l -0.08855,4.72 -2.7273697,0.0914 -2.7273692,0.0914 0.1209805,1.268601 0.1209805,1.2686 3.406389,3.2e-4 3.4063889,3.2e-4 -0.09338,-6.080351 z m 18.333381,-0.16036 c 0,-1.00848 -0.08762,-1.12 -0.88,-1.12 -0.792381,0 -0.88,0.11152 -0.88,1.12 0,1.00849 0.08762,1.12 0.88,1.12 0.792381,0 0.88,-0.11151 0.88,-1.12 z m -2.72,-5.93596 v -1.29598 l 1.84,0.096 1.84,0.096 0.09932,1.2 c 0.08538,1.03161 0.208864,1.2 0.88,1.2 0.674186,0 0.780682,-0.14811 0.780682,-1.08576 0,-1.16353 0.39352,-1.47436 1.866173,-1.47406 0.845472,1.7e-4 0.853363,-0.021 0.806486,-2.16 -0.04468,-2.03858 -0.08953,-2.16018 -0.79686,-2.16018 -0.582659,0 -0.786384,0.21372 -0.915129,0.96 l -0.165616,0.96 -3.117528,0.0916 -3.117528,0.0916 v -1.13159 -1.13159 h -2.56 -2.56 v 2.37005 c 0,2.2061 0.04391,2.35855 0.634865,2.20402 0.349176,-0.0913 0.997176,-0.0751 1.44,0.0361 0.66728,0.16747 0.805135,0.39279 0.805135,1.31598 0,1.05969 0.0545,1.1139 1.12,1.1139 1.095634,0 1.12,-0.0282 1.12,-1.29597 z m 19.199999,-10.86404 v -1.6 h 1.6 1.6 v -3.519996 -3.52 h -6.4 -6.399999 v 0.7816 c 0,0.690762 0.15806,0.793037 1.36,0.88 l 1.36,0.0984 0.09753,1.52 c 0.09242,1.440253 0.146061,1.52 1.022468,1.52 0.876406,0 0.930051,-0.07975 1.022467,-1.52 0.09734,-1.517027 0.09998,-1.520202 1.34703,-1.622269 0.687222,-0.05625 1.594275,-0.01574 2.01567,0.09003 0.711712,0.178627 0.759373,0.322371 0.670503,2.022266 l -0.09567,1.829971 -1.342457,0.09754 c -1.329847,0.09662 -1.343376,0.110158 -1.44,1.439998 l -0.09754,1.34246 h -4.959999 -4.96 l -0.09932,-1.2 -0.09931,-1.2 H 32.011738 29.81133 l -0.100274,1.04 -0.100275,1.04 -5.2,0.0879 -5.2,0.0879 v -1.1086 c 0,-1.05008 -0.06336,-1.11386 -1.2,-1.20793 l -1.2,-0.0993 -0.09527,-2.000001 -0.09527,-2 h 2.09527 2.095269 v 1.44 c 0,1.386666 0.03556,1.44 0.96,1.44 0.924445,0 0.96,-0.05333 0.96,-1.44 v -1.44 h 1.44 c 1.384296,0 1.44,-0.03686 1.44,-0.952938 v -0.95294 l -6,-0.08706 -6.000002,-0.08707 -0.09753,-1.52 -0.09753,-1.52 h -1.262467 -1.262466 v -3.04 -3.04 l -0.88,-1.22e-4 -0.8800007,-1.18e-4 v 8.240118 8.240118 l 1.2800007,0.16 c 1.247866,0.15599 1.28247,0.19414 1.378399,1.52 l 0.0984,1.36 h 18.0616 18.0616 z M 37.130775,41.76394 c 0,-1.093334 -0.03046,-1.12 -1.28,-1.12 h -1.28 v -3.04 -3.04 h -2.547991 -2.547992 l -0.09201,2.96 -0.09201,2.96 -1.36,0.0984 c -1.31757,0.09533 -1.36,0.132768 -1.36,1.2 v 1.1016 h 5.28 5.28 z m -31.9999996,-4.64 c 0,-2.517334 -0.013334,-2.56 -0.7999999,-2.56 -0.7866666,0 -0.8,0.04267 -0.8,2.56 0,2.517334 0.013334,2.56 0.8,2.56 0.7866665,0 0.7999999,-0.04267 0.7999999,-2.56 z m 20.4799996,-1.6 v -4.16 h -5.44 -5.44 v 4.16 4.16 h 5.44 5.44 z m -5.748741,1.301037 c -0.372215,-0.695491 -0.41862,-1.742266 -0.125712,-2.835776 0.179848,-0.671427 0.351814,-0.726579 1.99563,-0.64 l 1.798823,0.09474 0.09855,1.544861 c 0.125081,1.960802 -0.286972,2.455138 -2.046473,2.455138 -1.046311,0 -1.471386,-0.152896 -1.720818,-0.618963 z m 31.34907,-1.381037 3.29e-4,-4.24 -6.400329,0.09285 -6.400329,0.09285 v 4.147148 4.147152 h 6.399999 6.4 l 3.2e-4,-4.24 z m -10.818777,1.724813 c -0.282346,-0.179069 -0.386426,-0.827981 -0.32,-1.995101 l 0.09845,-1.729712 h 3.04 3.039999 l 0.09845,1.729712 c 0.06643,1.16712 -0.03765,1.816032 -0.32,1.995101 -0.230147,0.145961 -1.498448,0.265385 -2.818447,0.265385 -1.32,0 -2.588301,-0.119424 -2.818448,-0.265385 z m -29.760868,-8.284813 0.09932,-1.2 8.639999,-0.08985 c 4.752,-0.04942 8.964,-0.01067 9.36,0.0861 0.575076,0.140534 0.72,0.400161 0.72,1.289854 v 1.113896 h 2.4 c 2.212125,0 2.4,-0.05175 2.4,-0.661037 0,-0.363571 0.149065,-0.939571 0.331257,-1.28 0.314192,-0.587074 0.751085,-0.618963 8.48,-0.618963 5.219162,0 8.148742,-0.115044 8.148742,-0.32 0,-0.176 -0.648,-0.32 -1.44,-0.32 h -1.44 l 6.1e-5,-1.36 5.8e-5,-1.36 -18.240058,0.08518 -18.240059,0.08517 v 1.050823 c 0,1.330215 -0.489998,1.818822 -1.824,1.818822 -1.0382227,0 -1.0560007,0.02424 -1.0560007,1.44 0,1.313165 0.06876,1.44 0.780683,1.44 0.6711337,0 0.7946207,-0.168391 0.8800007,-1.2 z M 75.850773,50.403936 V 39.36394 h -3.679999 -3.68 v -1.92 -1.92 h 11.199999 11.2 v 1.92 1.92 h -3.68 -3.68 v 11.039996 11.04 h -3.84 -3.84 z m 25.599997,9.12 v -1.92 h 3.68 3.68 v -9.119996 -9.12 h -3.68 -3.68 v -1.92 -1.92 h 11.2 11.2 v 1.92 1.92 h -3.68 -3.68 v 9.12 9.119996 h 3.68 3.68 v 1.92 1.92 h -11.2 -11.2 z m 25.92,-11.039996 v -12.96 h 3.68 3.68 v 1.92 1.92 h 1.92 1.92 v 1.76 1.76 h 1.92 1.92 v 1.92 1.92 h 1.6 1.59999 v -5.6 -5.6 h 3.84 3.84 v 12.96 12.959996 h -3.68 -3.68 v -1.76 -1.76 h -1.91999 -1.92 v -1.92 -1.92 h -1.92 -1.92 v -1.76 -1.76 h -1.6 -1.6 v 5.44 5.44 h -3.84 -3.84 z m 37.75999,7.359996 v -5.6 h -1.92 -1.92 v -1.759996 -1.76 h -1.92 -1.92 v -5.6 -5.6 h 3.84 3.84 v 5.44 5.44 h 3.52 3.52 v -5.44 -5.44 h 3.84 3.84 v 5.44 5.44 h -1.76 -1.76 v 1.92 1.919996 h -1.76 -1.76 v 5.6 5.6 h -3.84 -3.84 z m 26.56,3.84 v -1.76 h -1.92 -1.92 v -1.76 -1.76 h -1.76 -1.76 v -5.759996 -5.76 h 1.76 1.76 v -1.76 -1.76 h 1.76 1.76 v -1.92 -1.92 h 9.44 9.44 v 1.92 1.92 h -7.2 -7.2 v 1.76 1.76 h -1.92 -1.92 v 5.6 5.599996 h 1.76 1.76 v 1.76 1.76 h 3.52 3.52 v -3.52 -3.52 h -1.76 -1.76 v -1.919996 -1.92 h 5.6 5.6 v 7.359996 7.36 h -9.28 -9.28 z m 21.12,-11.199996 v -12.96 h 13.28 13.28 v 1.92 1.92 h -9.28 -9.28 v 3.52 3.52 h 5.44 5.44 v 1.92 1.919996 h -5.44 -5.44 v 3.68 3.68 h 9.28 9.28 v 1.92 1.92 h -13.28 -13.28 z m 28.48,0 v -12.96 h 3.68 3.68 v 1.92 1.92 h 1.92 1.92 v 1.76 1.76 h 1.92 1.92 v 1.92 1.92 h 1.6 1.6 v -5.6 -5.6 h 3.84 3.84 v 12.96 12.959996 h -3.68 -3.68 v -1.76 -1.76 h -1.92 -1.92 v -1.92 -1.92 h -1.92 -1.92 v -1.76 -1.76 h -1.6 -1.6 v 5.44 5.44 h -3.84 -3.84 z m 33.92,1.919996 V 39.36394 h -3.68 -3.68 v -1.92 -1.92 h 11.2 11.2 v 1.92 1.92 h -3.68 -3.68 v 11.039996 11.04 h -3.84 -3.84 z"
|
|
19
|
+
id="path544481" />
|
|
20
|
+
</g>
|
|
21
|
+
</svg>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Lint & Typecheck
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [master]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [master]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
lint_and_typecheck:
|
|
11
|
+
name: Lint & Typecheck
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
strategy:
|
|
15
|
+
matrix:
|
|
16
|
+
check:
|
|
17
|
+
- name: mypy
|
|
18
|
+
run: uv run mypy
|
|
19
|
+
- name: ruff
|
|
20
|
+
run: uv run ruff check .
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- name: Checkout repository
|
|
24
|
+
uses: actions/checkout@v4
|
|
25
|
+
|
|
26
|
+
- name: Set up Python
|
|
27
|
+
uses: actions/setup-python@v5
|
|
28
|
+
with:
|
|
29
|
+
python-version: "3.12"
|
|
30
|
+
|
|
31
|
+
- name: Install uv
|
|
32
|
+
run: pip install uv
|
|
33
|
+
|
|
34
|
+
- name: Install dependencies
|
|
35
|
+
run: |
|
|
36
|
+
uv venv --seed .venv
|
|
37
|
+
source .venv/bin/activate
|
|
38
|
+
uv sync --all-groups --all-extras
|
|
39
|
+
|
|
40
|
+
- name: Run ${{ matrix.check.name }}
|
|
41
|
+
run: ${{ matrix.check.run }}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: Deploy MkDocs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
deploy:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout repository
|
|
17
|
+
uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Set up Python
|
|
20
|
+
uses: actions/setup-python@v5
|
|
21
|
+
with:
|
|
22
|
+
python-version: '3.12'
|
|
23
|
+
|
|
24
|
+
- name: Install uv
|
|
25
|
+
run: pip install uv
|
|
26
|
+
|
|
27
|
+
- name: Install dependencies
|
|
28
|
+
run: |
|
|
29
|
+
uv venv --seed .venv
|
|
30
|
+
source .venv/bin/activate
|
|
31
|
+
uv sync --extra docs
|
|
32
|
+
|
|
33
|
+
- name: Deploy to GitHub Pages
|
|
34
|
+
run: |
|
|
35
|
+
source .venv/bin/activate
|
|
36
|
+
git config user.name github-actions
|
|
37
|
+
git config user.email github-actions@github.com
|
|
38
|
+
mkdocs gh-deploy --force
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
publish:
|
|
13
|
+
name: Publish to PyPI
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout repository
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Set up uv
|
|
21
|
+
uses: astral-sh/setup-uv@v7
|
|
22
|
+
|
|
23
|
+
- name: Set up Python
|
|
24
|
+
run: uv python install 3.12
|
|
25
|
+
|
|
26
|
+
- name: Build all packages
|
|
27
|
+
run: uv build --all-packages
|
|
28
|
+
|
|
29
|
+
- name: Publish to PyPI
|
|
30
|
+
env:
|
|
31
|
+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
32
|
+
run: uv publish
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
#poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
#pdm.lock
|
|
116
|
+
#pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
#pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# SageMath parsed files
|
|
135
|
+
*.sage.py
|
|
136
|
+
|
|
137
|
+
# Environments
|
|
138
|
+
.env
|
|
139
|
+
.envrc
|
|
140
|
+
.venv
|
|
141
|
+
env/
|
|
142
|
+
venv/
|
|
143
|
+
ENV/
|
|
144
|
+
env.bak/
|
|
145
|
+
venv.bak/
|
|
146
|
+
|
|
147
|
+
# Spyder project settings
|
|
148
|
+
.spyderproject
|
|
149
|
+
.spyproject
|
|
150
|
+
|
|
151
|
+
# Rope project settings
|
|
152
|
+
.ropeproject
|
|
153
|
+
|
|
154
|
+
# mkdocs documentation
|
|
155
|
+
/site
|
|
156
|
+
|
|
157
|
+
# mypy
|
|
158
|
+
.mypy_cache/
|
|
159
|
+
.dmypy.json
|
|
160
|
+
dmypy.json
|
|
161
|
+
|
|
162
|
+
# Pyre type checker
|
|
163
|
+
.pyre/
|
|
164
|
+
|
|
165
|
+
# pytype static type analyzer
|
|
166
|
+
.pytype/
|
|
167
|
+
|
|
168
|
+
# Cython debug symbols
|
|
169
|
+
cython_debug/
|
|
170
|
+
|
|
171
|
+
# PyCharm
|
|
172
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
173
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
174
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
175
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
176
|
+
#.idea/
|
|
177
|
+
|
|
178
|
+
# Abstra
|
|
179
|
+
# Abstra is an AI-powered process automation framework.
|
|
180
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
181
|
+
# Learn more at https://abstra.io/docs
|
|
182
|
+
.abstra/
|
|
183
|
+
|
|
184
|
+
# Visual Studio Code
|
|
185
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
186
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
188
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
189
|
+
# .vscode/
|
|
190
|
+
|
|
191
|
+
# Ruff stuff:
|
|
192
|
+
.ruff_cache/
|
|
193
|
+
|
|
194
|
+
# PyPI configuration file
|
|
195
|
+
.pypirc
|
|
196
|
+
|
|
197
|
+
# Cursor
|
|
198
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
199
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
200
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
201
|
+
.cursorignore
|
|
202
|
+
.cursorindexingignore
|
|
203
|
+
|
|
204
|
+
# Marimo
|
|
205
|
+
marimo/_static/
|
|
206
|
+
marimo/_lsp/
|
|
207
|
+
__marimo__/
|
|
208
|
+
|
|
209
|
+
# examples/knowledge-graph
|
|
210
|
+
.neo4j/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.12
|
tinygent-0.1.1/CLAUDE.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# CLAUDE.md - Tinygent Development Guide
|
|
2
|
+
|
|
3
|
+
## Project Overview
|
|
4
|
+
|
|
5
|
+
Tinygent is a lightweight agentic framework for building and deploying generative AI applications. It provides a simple interface for working with various LLM providers (OpenAI, Anthropic, Mistral, Gemini) and tools.
|
|
6
|
+
|
|
7
|
+
## Architecture
|
|
8
|
+
|
|
9
|
+
### Main Modules
|
|
10
|
+
|
|
11
|
+
| Module | Path | Purpose |
|
|
12
|
+
|--------|------|---------|
|
|
13
|
+
| **agents** | `tinygent/agents/` | Agent implementations (ReAct, MultiStep, Squad, MAP) |
|
|
14
|
+
| **core** | `tinygent/core/` | Data models, factories, runtime registry, telemetry, prompts |
|
|
15
|
+
| **tools** | `tinygent/tools/` | Tool decorators (`@simple`, `@reasoning`, `@jit`) |
|
|
16
|
+
| **memory** | `tinygent/memory/` | Conversation memory (buffer, summary, window, combined) |
|
|
17
|
+
| **cli** | `tinygent/cli/` | `tiny` CLI command |
|
|
18
|
+
| **llms** | `tinygent/llms/` | LLM utilities |
|
|
19
|
+
|
|
20
|
+
### Runtime (`tinygent/core/runtime/`)
|
|
21
|
+
|
|
22
|
+
The runtime module provides global registries that store all registered components. When you use `@register_*` decorators (see Key Patterns below), components are stored in these registries and can later be retrieved via factory functions.
|
|
23
|
+
|
|
24
|
+
| Component | Purpose |
|
|
25
|
+
|-----------|---------|
|
|
26
|
+
| `global_registry.py` | Central registry for all component types (agents, LLMs, embedders, cross-encoders, memories, tools). Decorators like `@register_agent`, `@register_llm`, etc. populate this registry. |
|
|
27
|
+
| `tool_catalog.py` | Runtime tool registry with caching support and hidden tools. Used by `@register_tool` decorator. |
|
|
28
|
+
| `middleware_catalog.py` | Registry for agent middleware factories. Used by `@register_middleware` decorator. |
|
|
29
|
+
| `executors.py` | Execution utilities |
|
|
30
|
+
|
|
31
|
+
**Flow:** `@register_* decorator` → stores in `global_registry` / `tool_catalog` / `middleware_catalog` → retrieved via `build_*()` factory functions
|
|
32
|
+
|
|
33
|
+
### Packages (packages/)
|
|
34
|
+
|
|
35
|
+
Provider-specific implementations registered via entry points:
|
|
36
|
+
|
|
37
|
+
- `tiny_openai` - OpenAI LLM & embeddings
|
|
38
|
+
- `tiny_anthropic` - Anthropic Claude
|
|
39
|
+
- `tiny_mistralai` - Mistral AI
|
|
40
|
+
- `tiny_gemini` - Google Gemini
|
|
41
|
+
- `tiny_voyageai` - VoyageAI embeddings
|
|
42
|
+
- `tiny_brave` - Brave search
|
|
43
|
+
- `tiny_chat` - Chat UI (FastAPI)
|
|
44
|
+
- `tiny_graph` - Knowledge graph (Neo4j)
|
|
45
|
+
|
|
46
|
+
## Development Setup
|
|
47
|
+
|
|
48
|
+
**Always use `uv` as the package manager.**
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# Create virtual environment
|
|
52
|
+
uv venv --seed .venv
|
|
53
|
+
source .venv/bin/activate
|
|
54
|
+
|
|
55
|
+
# Install core dependencies
|
|
56
|
+
uv sync
|
|
57
|
+
|
|
58
|
+
# Install all dependencies (dev + all optional packages)
|
|
59
|
+
uv sync --all-groups --all-extras
|
|
60
|
+
|
|
61
|
+
# Install in editable mode
|
|
62
|
+
uv pip install -e .
|
|
63
|
+
|
|
64
|
+
# Run examples
|
|
65
|
+
uv run examples/agents/multi-step/main.py
|
|
66
|
+
|
|
67
|
+
# Format code
|
|
68
|
+
uv run fmt
|
|
69
|
+
|
|
70
|
+
# Lint and type check
|
|
71
|
+
uv run lint
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Workflow Rules
|
|
75
|
+
|
|
76
|
+
- **NEVER commit without explicit user approval** - always show the diff and wait for approval
|
|
77
|
+
- **NEVER amend commits** - always create a new commit instead
|
|
78
|
+
- **ALWAYS run before committing** - `uv run fmt && uv run lint`
|
|
79
|
+
|
|
80
|
+
## Style Notes
|
|
81
|
+
|
|
82
|
+
- 4-space indentation, 89 char line limit
|
|
83
|
+
- Force single-line imports
|
|
84
|
+
- NEVER use emojis
|
|
85
|
+
|
|
86
|
+
## Key Patterns
|
|
87
|
+
|
|
88
|
+
### Config/Builder Pattern
|
|
89
|
+
|
|
90
|
+
All components use a `*Config` class with a `.build()` factory method:
|
|
91
|
+
|
|
92
|
+
```python
|
|
93
|
+
config = ReactAgentConfig(llm="openai:gpt-4o-mini", tools=[...])
|
|
94
|
+
agent = config.build()
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### LLM String Syntax
|
|
98
|
+
|
|
99
|
+
Format: `"provider:model"` (e.g., `"openai:gpt-4o-mini"`, `"anthropic:claude-3-5-sonnet"`)
|
|
100
|
+
|
|
101
|
+
### Registry Pattern
|
|
102
|
+
|
|
103
|
+
Components auto-register via decorators:
|
|
104
|
+
|
|
105
|
+
- `@register_agent` - Agents
|
|
106
|
+
- `@register_tool` - Tools (simple)
|
|
107
|
+
- `@register_reasoning_tool` - Reasoning tools
|
|
108
|
+
- `@register_jit_tool` - JIT tools
|
|
109
|
+
- `@register_memory` - Memory types
|
|
110
|
+
- `@register_middleware` - Middleware
|
|
111
|
+
- `@register_llm` - LLM providers
|
|
112
|
+
- `@register_embedder` - Embedders
|
|
113
|
+
- `@register_crossencoder` - Cross-encoders
|
|
114
|
+
|
|
115
|
+
### Async-First
|
|
116
|
+
|
|
117
|
+
All agent `run()` and `stream()` methods are async generators.
|
|
118
|
+
|
|
119
|
+
### Factory Functions
|
|
120
|
+
|
|
121
|
+
Use factories from `tinygent.core.factory`:
|
|
122
|
+
|
|
123
|
+
- `build_agent()` - Build agent from config
|
|
124
|
+
- `build_llm()` - Build LLM from string
|
|
125
|
+
- `build_memory()` - Build memory from config
|
|
126
|
+
- `build_tool()` - Build tool from config
|
|
127
|
+
- `build_embedder()` - Build embedder from config
|
|
128
|
+
- `build_cross_encoder()` - Build cross-encoder from config
|
|
129
|
+
- `build_middleware()` - Build middleware from config
|
tinygent-0.1.1/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright (c) 2026 Filip Chytil
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|