aionto-sdk 0.1.0__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.
- aionto_sdk-0.1.0/LICENSE +21 -0
- aionto_sdk-0.1.0/PKG-INFO +230 -0
- aionto_sdk-0.1.0/README.md +135 -0
- aionto_sdk-0.1.0/pyproject.toml +344 -0
- aionto_sdk-0.1.0/src/aion/adk/authoring/__init__.py +35 -0
- aionto_sdk-0.1.0/src/aion/adk/authoring/constants.py +7 -0
- aionto_sdk-0.1.0/src/aion/adk/authoring/files.py +388 -0
- aionto_sdk-0.1.0/src/aion/adk/authoring/invocation/__init__.py +46 -0
- aionto_sdk-0.1.0/src/aion/adk/authoring/invocation/context_vars.py +57 -0
- aionto_sdk-0.1.0/src/aion/adk/authoring/invocation/emitters.py +239 -0
- aionto_sdk-0.1.0/src/aion/adk/authoring/invocation/event_metadata.py +177 -0
- aionto_sdk-0.1.0/src/aion/adk/authoring/invocation/invocation_context.py +23 -0
- aionto_sdk-0.1.0/src/aion/adk/authoring/invocation/message.py +75 -0
- aionto_sdk-0.1.0/src/aion/adk/authoring/invocation/thread.py +198 -0
- aionto_sdk-0.1.0/src/aion/adk/authoring/mcp/__init__.py +13 -0
- aionto_sdk-0.1.0/src/aion/adk/authoring/mcp/toolsets.py +327 -0
- aionto_sdk-0.1.0/src/aion/adk/authoring/models.py +305 -0
- aionto_sdk-0.1.0/src/aion/adk/authoring/transformers.py +210 -0
- aionto_sdk-0.1.0/src/aion/adk/server/__init__.py +31 -0
- aionto_sdk-0.1.0/src/aion/adk/server/adapter.py +121 -0
- aionto_sdk-0.1.0/src/aion/adk/server/artifacts/__init__.py +10 -0
- aionto_sdk-0.1.0/src/aion/adk/server/artifacts/backends/__init__.py +19 -0
- aionto_sdk-0.1.0/src/aion/adk/server/artifacts/backends/a2a.py +815 -0
- aionto_sdk-0.1.0/src/aion/adk/server/artifacts/backends/base.py +40 -0
- aionto_sdk-0.1.0/src/aion/adk/server/artifacts/backends/memory.py +44 -0
- aionto_sdk-0.1.0/src/aion/adk/server/artifacts/factory.py +46 -0
- aionto_sdk-0.1.0/src/aion/adk/server/constants.py +8 -0
- aionto_sdk-0.1.0/src/aion/adk/server/execution/__init__.py +20 -0
- aionto_sdk-0.1.0/src/aion/adk/server/execution/adk_executor.py +390 -0
- aionto_sdk-0.1.0/src/aion/adk/server/execution/event_converter.py +504 -0
- aionto_sdk-0.1.0/src/aion/adk/server/execution/event_queue.py +155 -0
- aionto_sdk-0.1.0/src/aion/adk/server/execution/pause.py +220 -0
- aionto_sdk-0.1.0/src/aion/adk/server/execution/result_handler.py +142 -0
- aionto_sdk-0.1.0/src/aion/adk/server/execution/runner.py +204 -0
- aionto_sdk-0.1.0/src/aion/adk/server/execution/session_files.py +175 -0
- aionto_sdk-0.1.0/src/aion/adk/server/execution/stream_executor.py +318 -0
- aionto_sdk-0.1.0/src/aion/adk/server/plugin.py +86 -0
- aionto_sdk-0.1.0/src/aion/adk/server/session/__init__.py +9 -0
- aionto_sdk-0.1.0/src/aion/adk/server/session/backends/__init__.py +18 -0
- aionto_sdk-0.1.0/src/aion/adk/server/session/backends/base.py +40 -0
- aionto_sdk-0.1.0/src/aion/adk/server/session/backends/memory.py +46 -0
- aionto_sdk-0.1.0/src/aion/adk/server/session/backends/postgres.py +172 -0
- aionto_sdk-0.1.0/src/aion/adk/server/session/factory.py +63 -0
- aionto_sdk-0.1.0/src/aion/adk/server/transformers/__init__.py +4 -0
- aionto_sdk-0.1.0/src/aion/adk/server/transformers/a2a_to_adk.py +86 -0
- aionto_sdk-0.1.0/src/aion/adk/server/transformers/adk_to_a2a.py +108 -0
- aionto_sdk-0.1.0/src/aion/api/__init__.py +54 -0
- aionto_sdk-0.1.0/src/aion/api/callback_attribution.py +76 -0
- aionto_sdk-0.1.0/src/aion/api/callback_errors.py +80 -0
- aionto_sdk-0.1.0/src/aion/api/control_plane/__init__.py +35 -0
- aionto_sdk-0.1.0/src/aion/api/control_plane/models.py +770 -0
- aionto_sdk-0.1.0/src/aion/api/control_plane/paths.py +214 -0
- aionto_sdk-0.1.0/src/aion/api/decisions.py +162 -0
- aionto_sdk-0.1.0/src/aion/api/exceptions.py +134 -0
- aionto_sdk-0.1.0/src/aion/api/file_service_client.py +708 -0
- aionto_sdk-0.1.0/src/aion/api/gql/__init__.py +7 -0
- aionto_sdk-0.1.0/src/aion/api/gql/client.py +431 -0
- aionto_sdk-0.1.0/src/aion/api/gql/context_manager.py +76 -0
- aionto_sdk-0.1.0/src/aion/api/gql/generated/graphql_client/__init__.py +77 -0
- aionto_sdk-0.1.0/src/aion/api/gql/generated/graphql_client/a_2_a_stream.py +42 -0
- aionto_sdk-0.1.0/src/aion/api/gql/generated/graphql_client/async_base_client_open_telemetry.py +718 -0
- aionto_sdk-0.1.0/src/aion/api/gql/generated/graphql_client/base_model.py +30 -0
- aionto_sdk-0.1.0/src/aion/api/gql/generated/graphql_client/base_operation.py +175 -0
- aionto_sdk-0.1.0/src/aion/api/gql/generated/graphql_client/chat_completion_stream.py +64 -0
- aionto_sdk-0.1.0/src/aion/api/gql/generated/graphql_client/client.py +173 -0
- aionto_sdk-0.1.0/src/aion/api/gql/generated/graphql_client/custom_fields.py +85 -0
- aionto_sdk-0.1.0/src/aion/api/gql/generated/graphql_client/custom_mutations.py +26 -0
- aionto_sdk-0.1.0/src/aion/api/gql/generated/graphql_client/custom_queries.py +20 -0
- aionto_sdk-0.1.0/src/aion/api/gql/generated/graphql_client/custom_typing_fields.py +135 -0
- aionto_sdk-0.1.0/src/aion/api/gql/generated/graphql_client/enums.py +17 -0
- aionto_sdk-0.1.0/src/aion/api/gql/generated/graphql_client/exceptions.py +87 -0
- aionto_sdk-0.1.0/src/aion/api/gql/generated/graphql_client/input_types.py +71 -0
- aionto_sdk-0.1.0/src/aion/api/gql/generated/graphql_client/operations.py +70 -0
- aionto_sdk-0.1.0/src/aion/api/gql/generated/graphql_client/version_logs.py +29 -0
- aionto_sdk-0.1.0/src/aion/api/http/__init__.py +17 -0
- aionto_sdk-0.1.0/src/aion/api/http/client.py +182 -0
- aionto_sdk-0.1.0/src/aion/api/http/jwt_manager.py +549 -0
- aionto_sdk-0.1.0/src/aion/api/images.py +313 -0
- aionto_sdk-0.1.0/src/aion/api/model_service_client.py +308 -0
- aionto_sdk-0.1.0/src/aion/cli/__init__.py +1 -0
- aionto_sdk-0.1.0/src/aion/cli/__main__.py +7 -0
- aionto_sdk-0.1.0/src/aion/cli/bin/__init__.py +1 -0
- aionto_sdk-0.1.0/src/aion/cli/bin/cli.mjs +62967 -0
- aionto_sdk-0.1.0/src/aion/cli/cli.py +37 -0
- aionto_sdk-0.1.0/src/aion/cli/commands/__init__.py +11 -0
- aionto_sdk-0.1.0/src/aion/cli/commands/chat.py +295 -0
- aionto_sdk-0.1.0/src/aion/cli/commands/db.py +123 -0
- aionto_sdk-0.1.0/src/aion/cli/commands/logs.py +120 -0
- aionto_sdk-0.1.0/src/aion/cli/commands/serve.py +196 -0
- aionto_sdk-0.1.0/src/aion/cli/handlers/__init__.py +1 -0
- aionto_sdk-0.1.0/src/aion/cli/handlers/serve.py +492 -0
- aionto_sdk-0.1.0/src/aion/cli/services/__init__.py +68 -0
- aionto_sdk-0.1.0/src/aion/cli/services/aion/__init__.py +1 -0
- aionto_sdk-0.1.0/src/aion/cli/services/aion/deployment_register_version.py +277 -0
- aionto_sdk-0.1.0/src/aion/cli/services/chat/__init__.py +17 -0
- aionto_sdk-0.1.0/src/aion/cli/services/chat/credentials.py +202 -0
- aionto_sdk-0.1.0/src/aion/cli/services/chat/launcher.py +292 -0
- aionto_sdk-0.1.0/src/aion/cli/services/chat2/__init__.py +0 -0
- aionto_sdk-0.1.0/src/aion/cli/services/logs.py +203 -0
- aionto_sdk-0.1.0/src/aion/cli/services/serve/__init__.py +14 -0
- aionto_sdk-0.1.0/src/aion/cli/services/serve/agent_startup.py +227 -0
- aionto_sdk-0.1.0/src/aion/cli/services/serve/environment_preparer.py +100 -0
- aionto_sdk-0.1.0/src/aion/cli/services/serve/monitoring.py +76 -0
- aionto_sdk-0.1.0/src/aion/cli/services/serve/proxy_startup.py +180 -0
- aionto_sdk-0.1.0/src/aion/cli/services/serve/shutdown.py +35 -0
- aionto_sdk-0.1.0/src/aion/cli/utils/__init__.py +6 -0
- aionto_sdk-0.1.0/src/aion/cli/utils/cli_messages.py +74 -0
- aionto_sdk-0.1.0/src/aion/cli/utils/header_parser.py +30 -0
- aionto_sdk-0.1.0/src/aion/cli/utils/port_manager.py +310 -0
- aionto_sdk-0.1.0/src/aion/cli/utils/project_env.py +42 -0
- aionto_sdk-0.1.0/src/aion/cli/utils/proxy_utils.py +26 -0
- aionto_sdk-0.1.0/src/aion/core/__init__.py +9 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/__init__.py +98 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/artifacts.py +164 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/codes.py +75 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/content.py +184 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/deltas.py +169 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/enums.py +147 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/errors.py +45 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/extensions/__init__.py +10 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/extensions/cards.py +37 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/extensions/cron.py +36 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/extensions/daemon.py +78 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/extensions/distribution.py +361 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/extensions/event.py +46 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/extensions/messaging.py +232 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/extensions/traceability.py +49 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/extensions/welcome_message.py +34 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/file_contents.py +172 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/files.py +363 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/metadata.py +73 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/method_extensions.py +90 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/models.py +247 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/request.py +50 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/request_params.py +92 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/response.py +45 -0
- aionto_sdk-0.1.0/src/aion/core/a2a/states.py +54 -0
- aionto_sdk-0.1.0/src/aion/core/agent/__init__.py +5 -0
- aionto_sdk-0.1.0/src/aion/core/agent/conversation.py +209 -0
- aionto_sdk-0.1.0/src/aion/core/agent/invocation/__init__.py +12 -0
- aionto_sdk-0.1.0/src/aion/core/agent/invocation/card/__init__.py +26 -0
- aionto_sdk-0.1.0/src/aion/core/agent/invocation/card/card.py +316 -0
- aionto_sdk-0.1.0/src/aion/core/agent/invocation/card/utils.py +109 -0
- aionto_sdk-0.1.0/src/aion/core/agent/invocation/message.py +112 -0
- aionto_sdk-0.1.0/src/aion/core/agent/invocation/thread.py +143 -0
- aionto_sdk-0.1.0/src/aion/core/agent/left_out_files.py +326 -0
- aionto_sdk-0.1.0/src/aion/core/agent/model_files.py +362 -0
- aionto_sdk-0.1.0/src/aion/core/agent/testing.py +217 -0
- aionto_sdk-0.1.0/src/aion/core/config/__init__.py +27 -0
- aionto_sdk-0.1.0/src/aion/core/config/collectors/__init__.py +6 -0
- aionto_sdk-0.1.0/src/aion/core/config/collectors/agent_configuration.py +104 -0
- aionto_sdk-0.1.0/src/aion/core/config/collectors/base.py +11 -0
- aionto_sdk-0.1.0/src/aion/core/config/exceptions.py +10 -0
- aionto_sdk-0.1.0/src/aion/core/config/models.py +423 -0
- aionto_sdk-0.1.0/src/aion/core/config/reader.py +200 -0
- aionto_sdk-0.1.0/src/aion/core/constants/__init__.py +59 -0
- aionto_sdk-0.1.0/src/aion/core/constants/a2a.py +124 -0
- aionto_sdk-0.1.0/src/aion/core/db.py +92 -0
- aionto_sdk-0.1.0/src/aion/core/deployment.py +22 -0
- aionto_sdk-0.1.0/src/aion/core/exceptions.py +317 -0
- aionto_sdk-0.1.0/src/aion/core/http/__init__.py +3 -0
- aionto_sdk-0.1.0/src/aion/core/http/file_transport.py +210 -0
- aionto_sdk-0.1.0/src/aion/core/http/response.py +17 -0
- aionto_sdk-0.1.0/src/aion/core/logging/__init__.py +6 -0
- aionto_sdk-0.1.0/src/aion/core/logging/base.py +111 -0
- aionto_sdk-0.1.0/src/aion/core/logging/process.py +33 -0
- aionto_sdk-0.1.0/src/aion/core/metaclasses.py +49 -0
- aionto_sdk-0.1.0/src/aion/core/principal.py +148 -0
- aionto_sdk-0.1.0/src/aion/core/runtime/__init__.py +18 -0
- aionto_sdk-0.1.0/src/aion/core/runtime/context/__init__.py +55 -0
- aionto_sdk-0.1.0/src/aion/core/runtime/context/attribution.py +20 -0
- aionto_sdk-0.1.0/src/aion/core/runtime/context/builder.py +64 -0
- aionto_sdk-0.1.0/src/aion/core/runtime/context/conversation.py +621 -0
- aionto_sdk-0.1.0/src/aion/core/runtime/context/extensions/__init__.py +26 -0
- aionto_sdk-0.1.0/src/aion/core/runtime/context/extensions/descriptors.py +434 -0
- aionto_sdk-0.1.0/src/aion/core/runtime/context/extensions/pipeline.py +192 -0
- aionto_sdk-0.1.0/src/aion/core/runtime/context/extensions/registry.py +346 -0
- aionto_sdk-0.1.0/src/aion/core/runtime/context/models.py +293 -0
- aionto_sdk-0.1.0/src/aion/core/runtime/context/registry.py +117 -0
- aionto_sdk-0.1.0/src/aion/core/runtime/context/utils.py +92 -0
- aionto_sdk-0.1.0/src/aion/core/settings.py +259 -0
- aionto_sdk-0.1.0/src/aion/core/utils/__init__.py +6 -0
- aionto_sdk-0.1.0/src/aion/core/utils/optional_deps.py +114 -0
- aionto_sdk-0.1.0/src/aion/core/utils/path.py +17 -0
- aionto_sdk-0.1.0/src/aion/core/utils/protobuf.py +18 -0
- aionto_sdk-0.1.0/src/aion/core/utils/pydantic.py +85 -0
- aionto_sdk-0.1.0/src/aion/core/utils/text.py +46 -0
- aionto_sdk-0.1.0/src/aion/core/utils/url.py +41 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/__init__.py +31 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/constants.py +33 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/factory.py +96 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/fields.py +94 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/manager.py +175 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/__init__.py +8 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/env.py +125 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/migrate.py +72 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/status.py +96 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/utils/__init__.py +7 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/utils/logs.py +15 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/utils/permissions.py +44 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/versions/001_create_tasks.py +40 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/versions/002_remove_context_id_unique.py +27 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/versions/003_split_task_columns.py +61 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/versions/004_task_status_projections_and_claims.py +411 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/versions/005_add_task_owner_scope.py +43 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/versions/006_create_context_reservations.py +141 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/versions/007_context_lifecycle.py +112 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/versions/008_task_versions_and_events.py +95 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/versions/009_push_notification_configs.py +70 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/versions/010_adk_artifact_versions.py +57 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/migrations/versions/__init__.py +1 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/models.py +298 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/records.py +230 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/repositories/__init__.py +16 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/repositories/adk_artifact_versions/__init__.py +3 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/repositories/adk_artifact_versions/repository.py +86 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/repositories/base.py +91 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/repositories/context_reservations/__init__.py +3 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/repositories/context_reservations/repository.py +265 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/repositories/task_artifacts/__init__.py +3 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/repositories/task_artifacts/repository.py +109 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/repositories/task_messages/__init__.py +3 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/repositories/task_messages/repository.py +145 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/repositories/tasks/__init__.py +3 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/repositories/tasks/repository.py +667 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/repositories/tasks/selectors.py +68 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/types.py +37 -0
- aionto_sdk-0.1.0/src/aion/db/postgres/utils.py +191 -0
- aionto_sdk-0.1.0/src/aion/db/settings.py +145 -0
- aionto_sdk-0.1.0/src/aion/langgraph/authoring/__init__.py +58 -0
- aionto_sdk-0.1.0/src/aion/langgraph/authoring/events/__init__.py +19 -0
- aionto_sdk-0.1.0/src/aion/langgraph/authoring/events/custom_events.py +99 -0
- aionto_sdk-0.1.0/src/aion/langgraph/authoring/files.py +282 -0
- aionto_sdk-0.1.0/src/aion/langgraph/authoring/handlers.py +294 -0
- aionto_sdk-0.1.0/src/aion/langgraph/authoring/invocation/__init__.py +28 -0
- aionto_sdk-0.1.0/src/aion/langgraph/authoring/invocation/emitters.py +184 -0
- aionto_sdk-0.1.0/src/aion/langgraph/authoring/invocation/message.py +74 -0
- aionto_sdk-0.1.0/src/aion/langgraph/authoring/invocation/thread.py +170 -0
- aionto_sdk-0.1.0/src/aion/langgraph/authoring/mcp/__init__.py +17 -0
- aionto_sdk-0.1.0/src/aion/langgraph/authoring/mcp/tools.py +389 -0
- aionto_sdk-0.1.0/src/aion/langgraph/authoring/models.py +376 -0
- aionto_sdk-0.1.0/src/aion/langgraph/authoring/state.py +30 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/__init__.py +16 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/adapter.py +194 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/checkpoint/__init__.py +15 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/checkpoint/backends/__init__.py +19 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/checkpoint/backends/base.py +25 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/checkpoint/backends/memory.py +27 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/checkpoint/backends/postgres.py +205 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/checkpoint/factory.py +57 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/checkpoint/files.py +152 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/constants.py +5 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/converters/__init__.py +2 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/converters/a2a_to_lc.py +95 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/converters/lc_to_a2a.py +169 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/execution/__init__.py +8 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/execution/event_converter.py +622 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/execution/event_preprocessor.py +50 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/execution/langgraph_executor.py +256 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/execution/result_handler.py +115 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/execution/stream_executor.py +118 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/execution/transformer.py +65 -0
- aionto_sdk-0.1.0/src/aion/langgraph/server/plugin.py +82 -0
- aionto_sdk-0.1.0/src/aion/mcp/__init__.py +42 -0
- aionto_sdk-0.1.0/src/aion/mcp/endpoints.py +383 -0
- aionto_sdk-0.1.0/src/aion/mcp/proxy.py +61 -0
- aionto_sdk-0.1.0/src/aion/proxy/__init__.py +44 -0
- aionto_sdk-0.1.0/src/aion/proxy/client.py +54 -0
- aionto_sdk-0.1.0/src/aion/proxy/constants.py +39 -0
- aionto_sdk-0.1.0/src/aion/proxy/exceptions.py +56 -0
- aionto_sdk-0.1.0/src/aion/proxy/handlers.py +300 -0
- aionto_sdk-0.1.0/src/aion/proxy/middlewares/__init__.py +7 -0
- aionto_sdk-0.1.0/src/aion/proxy/middlewares/logging.py +103 -0
- aionto_sdk-0.1.0/src/aion/proxy/middlewares/swagger.py +188 -0
- aionto_sdk-0.1.0/src/aion/proxy/routes.py +147 -0
- aionto_sdk-0.1.0/src/aion/proxy/server.py +130 -0
- aionto_sdk-0.1.0/src/aion/proxy/types.py +42 -0
- aionto_sdk-0.1.0/src/aion/proxy/utils.py +29 -0
- aionto_sdk-0.1.0/src/aion/server/__init__.py +40 -0
- aionto_sdk-0.1.0/src/aion/server/a2a/__init__.py +42 -0
- aionto_sdk-0.1.0/src/aion/server/a2a/constants.py +26 -0
- aionto_sdk-0.1.0/src/aion/server/a2a/outbox.py +123 -0
- aionto_sdk-0.1.0/src/aion/server/a2a/response_extensions.py +65 -0
- aionto_sdk-0.1.0/src/aion/server/a2a/utils.py +376 -0
- aionto_sdk-0.1.0/src/aion/server/agent/__init__.py +12 -0
- aionto_sdk-0.1.0/src/aion/server/agent/adapters/__init__.py +39 -0
- aionto_sdk-0.1.0/src/aion/server/agent/adapters/interfaces/__init__.py +29 -0
- aionto_sdk-0.1.0/src/aion/server/agent/adapters/interfaces/agent.py +107 -0
- aionto_sdk-0.1.0/src/aion/server/agent/adapters/interfaces/executor.py +314 -0
- aionto_sdk-0.1.0/src/aion/server/agent/adapters/interfaces/messages.py +91 -0
- aionto_sdk-0.1.0/src/aion/server/agent/adapters/registry.py +56 -0
- aionto_sdk-0.1.0/src/aion/server/agent/aion_agent/__init__.py +12 -0
- aionto_sdk-0.1.0/src/aion/server/agent/aion_agent/agent.py +431 -0
- aionto_sdk-0.1.0/src/aion/server/agent/aion_agent/manager.py +188 -0
- aionto_sdk-0.1.0/src/aion/server/agent/aion_agent/models.py +23 -0
- aionto_sdk-0.1.0/src/aion/server/agent/aion_agent/module_loader.py +313 -0
- aionto_sdk-0.1.0/src/aion/server/agent/card.py +99 -0
- aionto_sdk-0.1.0/src/aion/server/agent/exceptions.py +95 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/__init__.py +13 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/active_task_registry.py +508 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/assistant_answer.py +131 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/context/__init__.py +3 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/context/attribution.py +35 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/context/providers.py +45 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/event_pipeline.py +446 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/extensions/__init__.py +19 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/extensions/evolution.py +416 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/extensions/executable.py +98 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/extensions/model_service.py +72 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/extensions/registration.py +133 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/extensions/secret_values.py +56 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/pool.py +122 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/request_context_builder.py +110 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/request_executor.py +739 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/scope/__init__.py +52 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/scope/helper.py +252 -0
- aionto_sdk-0.1.0/src/aion/server/agent/execution/scope/types.py +148 -0
- aionto_sdk-0.1.0/src/aion/server/agent/factory.py +88 -0
- aionto_sdk-0.1.0/src/aion/server/auth/__init__.py +57 -0
- aionto_sdk-0.1.0/src/aion/server/auth/caller.py +146 -0
- aionto_sdk-0.1.0/src/aion/server/auth/jwks.py +216 -0
- aionto_sdk-0.1.0/src/aion/server/auth/mode.py +111 -0
- aionto_sdk-0.1.0/src/aion/server/auth/verifier.py +388 -0
- aionto_sdk-0.1.0/src/aion/server/constants.py +5 -0
- aionto_sdk-0.1.0/src/aion/server/contexts/__init__.py +17 -0
- aionto_sdk-0.1.0/src/aion/server/contexts/errors.py +103 -0
- aionto_sdk-0.1.0/src/aion/server/contexts/service.py +332 -0
- aionto_sdk-0.1.0/src/aion/server/core/__init__.py +6 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/__init__.py +5 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/api/__init__.py +4 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/api/contexts.py +129 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/api/routes.py +55 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/factory.py +382 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/handlers/__init__.py +9 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/handlers/jsonrpc_dispatcher.py +325 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/handlers/jsonrpc_v03_adapter.py +64 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/handlers/request_handler.py +785 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/handlers/request_preprocessors/__init__.py +8 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/handlers/request_preprocessors/base.py +65 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/handlers/request_preprocessors/file_parts.py +188 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/handlers/sse.py +10 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/handlers/terminal_task_projection.py +346 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/lifespan.py +106 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/registry/__init__.py +15 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/registry/main.py +62 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/registry/mixins/__init__.py +11 -0
- aionto_sdk-0.1.0/src/aion/server/core/app/registry/mixins/router.py +166 -0
- aionto_sdk-0.1.0/src/aion/server/core/errors.py +119 -0
- aionto_sdk-0.1.0/src/aion/server/core/middlewares/__init__.py +5 -0
- aionto_sdk-0.1.0/src/aion/server/core/middlewares/_rpc_request.py +156 -0
- aionto_sdk-0.1.0/src/aion/server/core/middlewares/aion_context.py +100 -0
- aionto_sdk-0.1.0/src/aion/server/core/middlewares/auth.py +284 -0
- aionto_sdk-0.1.0/src/aion/server/core/middlewares/runtime_identity.py +42 -0
- aionto_sdk-0.1.0/src/aion/server/core/middlewares/tracing.py +117 -0
- aionto_sdk-0.1.0/src/aion/server/core/platform/__init__.py +1 -0
- aionto_sdk-0.1.0/src/aion/server/core/platform/websocket/__init__.py +2 -0
- aionto_sdk-0.1.0/src/aion/server/core/platform/websocket/transport.py +52 -0
- aionto_sdk-0.1.0/src/aion/server/core/platform/websocket/ws_manager.py +359 -0
- aionto_sdk-0.1.0/src/aion/server/database.py +118 -0
- aionto_sdk-0.1.0/src/aion/server/files/__init__.py +2 -0
- aionto_sdk-0.1.0/src/aion/server/files/a2a/__init__.py +19 -0
- aionto_sdk-0.1.0/src/aion/server/files/a2a/inline_guard.py +114 -0
- aionto_sdk-0.1.0/src/aion/server/files/a2a/part_transformer/__init__.py +29 -0
- aionto_sdk-0.1.0/src/aion/server/files/a2a/part_transformer/inline.py +81 -0
- aionto_sdk-0.1.0/src/aion/server/files/a2a/part_transformer/transformer.py +549 -0
- aionto_sdk-0.1.0/src/aion/server/files/a2a/part_transformer/uploads.py +113 -0
- aionto_sdk-0.1.0/src/aion/server/files/links.py +287 -0
- aionto_sdk-0.1.0/src/aion/server/files/storage/__init__.py +31 -0
- aionto_sdk-0.1.0/src/aion/server/files/storage/backends/__init__.py +5 -0
- aionto_sdk-0.1.0/src/aion/server/files/storage/backends/aion.py +326 -0
- aionto_sdk-0.1.0/src/aion/server/files/storage/backends/base.py +133 -0
- aionto_sdk-0.1.0/src/aion/server/files/storage/backends/stub.py +66 -0
- aionto_sdk-0.1.0/src/aion/server/files/storage/context.py +79 -0
- aionto_sdk-0.1.0/src/aion/server/files/storage/contracts.py +190 -0
- aionto_sdk-0.1.0/src/aion/server/files/storage/manager.py +182 -0
- aionto_sdk-0.1.0/src/aion/server/files/storage/naming.py +54 -0
- aionto_sdk-0.1.0/src/aion/server/files/turn.py +149 -0
- aionto_sdk-0.1.0/src/aion/server/interfaces/__init__.py +2 -0
- aionto_sdk-0.1.0/src/aion/server/interfaces/auth.py +16 -0
- aionto_sdk-0.1.0/src/aion/server/interfaces/websocket.py +54 -0
- aionto_sdk-0.1.0/src/aion/server/logging/__init__.py +5 -0
- aionto_sdk-0.1.0/src/aion/server/logging/filters.py +166 -0
- aionto_sdk-0.1.0/src/aion/server/logging/handlers/__init__.py +2 -0
- aionto_sdk-0.1.0/src/aion/server/logging/handlers/logstash/__init__.py +23 -0
- aionto_sdk-0.1.0/src/aion/server/logging/handlers/logstash/endpoint.py +153 -0
- aionto_sdk-0.1.0/src/aion/server/logging/handlers/logstash/filter.py +42 -0
- aionto_sdk-0.1.0/src/aion/server/logging/handlers/logstash/formatter.py +131 -0
- aionto_sdk-0.1.0/src/aion/server/logging/handlers/logstash/handler.py +28 -0
- aionto_sdk-0.1.0/src/aion/server/logging/handlers/logstash/transport.py +131 -0
- aionto_sdk-0.1.0/src/aion/server/logging/handlers/stream.py +87 -0
- aionto_sdk-0.1.0/src/aion/server/logging/setup.py +54 -0
- aionto_sdk-0.1.0/src/aion/server/opentelemetry/__init__.py +1 -0
- aionto_sdk-0.1.0/src/aion/server/opentelemetry/startup.py +99 -0
- aionto_sdk-0.1.0/src/aion/server/opentelemetry/tracing.py +147 -0
- aionto_sdk-0.1.0/src/aion/server/plugins/__init__.py +19 -0
- aionto_sdk-0.1.0/src/aion/server/plugins/agent.py +55 -0
- aionto_sdk-0.1.0/src/aion/server/plugins/base.py +108 -0
- aionto_sdk-0.1.0/src/aion/server/plugins/factory.py +339 -0
- aionto_sdk-0.1.0/src/aion/server/plugins/registry.py +201 -0
- aionto_sdk-0.1.0/src/aion/server/server.py +188 -0
- aionto_sdk-0.1.0/src/aion/server/services/__init__.py +2 -0
- aionto_sdk-0.1.0/src/aion/server/services/_base.py +53 -0
- aionto_sdk-0.1.0/src/aion/server/services/aion/__init__.py +2 -0
- aionto_sdk-0.1.0/src/aion/server/services/aion/auth_manager.py +27 -0
- aionto_sdk-0.1.0/src/aion/server/services/aion/websocket_connection.py +33 -0
- aionto_sdk-0.1.0/src/aion/server/settings.py +291 -0
- aionto_sdk-0.1.0/src/aion/server/shutdown.py +117 -0
- aionto_sdk-0.1.0/src/aion/server/startup.py +67 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/__init__.py +26 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/abandoned.py +362 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/admission.py +186 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/context_artifacts.py +185 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/context_runs.py +200 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/contexts/__init__.py +29 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/contexts/catalog.py +170 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/contexts/memory.py +153 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/contexts/postgres.py +299 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/conversation.py +210 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/deduplicator.py +531 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/protocols.py +99 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/push_config_store.py +47 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/push_notifications.py +165 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/push_sender.py +325 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/request_metadata.py +180 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/settlement.py +73 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/store_manager.py +211 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/stores/__init__.py +17 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/stores/base_task_store.py +175 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/stores/in_memory_task_store.py +382 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/stores/page_token.py +119 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/stores/postgres_task_store.py +567 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/stores/postgres_versioned_task_store.py +303 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/task_manager.py +436 -0
- aionto_sdk-0.1.0/src/aion/server/tasks/terminal_push_sender.py +116 -0
- aionto_sdk-0.1.0/src/aion/server/types/__init__.py +3 -0
- aionto_sdk-0.1.0/src/aion/server/types/api/__init__.py +5 -0
- aionto_sdk-0.1.0/src/aion/server/types/api/response.py +22 -0
- aionto_sdk-0.1.0/src/aion/server/utils/__init__.py +6 -0
- aionto_sdk-0.1.0/src/aion/server/utils/asyncio.py +12 -0
- aionto_sdk-0.1.0/src/aion/server/utils/deployment.py +54 -0
- aionto_sdk-0.1.0/src/aion/server/utils/ports/__init__.py +27 -0
- aionto_sdk-0.1.0/src/aion/server/utils/ports/availability.py +248 -0
- aionto_sdk-0.1.0/src/aion/server/utils/ports/reservation.py +320 -0
- aionto_sdk-0.1.0/src/aion/server/utils/processes/__init__.py +1 -0
- aionto_sdk-0.1.0/src/aion/server/utils/processes/process_manager.py +538 -0
aionto_sdk-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Terminal Research
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aionto-sdk
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Aion Python SDK โ A2A server, authoring toolkits and the aion CLI
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Author: Terminal Research Team
|
|
8
|
+
Author-email: support@terminal.exchange
|
|
9
|
+
Requires-Python: >=3.12
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
14
|
+
Provides-Extra: adk-authoring
|
|
15
|
+
Provides-Extra: adk-server
|
|
16
|
+
Provides-Extra: langgraph-authoring
|
|
17
|
+
Provides-Extra: langgraph-server
|
|
18
|
+
Provides-Extra: server
|
|
19
|
+
Requires-Dist: PyJWT (>=2.9.0,<3.0.0)
|
|
20
|
+
Requires-Dist: PyYAML (>=6.0.2,<7.0.0)
|
|
21
|
+
Requires-Dist: SQLAlchemy (>=2.0.0,<3.0.0) ; extra == "adk-server"
|
|
22
|
+
Requires-Dist: SQLAlchemy (>=2.0.0,<3.0.0) ; extra == "langgraph-server"
|
|
23
|
+
Requires-Dist: SQLAlchemy (>=2.0.0,<3.0.0) ; extra == "server"
|
|
24
|
+
Requires-Dist: a2a-sdk (==1.3.0)
|
|
25
|
+
Requires-Dist: alembic (>=1.13.0,<2.0.0) ; extra == "adk-server"
|
|
26
|
+
Requires-Dist: alembic (>=1.13.0,<2.0.0) ; extra == "langgraph-server"
|
|
27
|
+
Requires-Dist: alembic (>=1.13.0,<2.0.0) ; extra == "server"
|
|
28
|
+
Requires-Dist: asgi-proxy-lib (==0.2a0) ; extra == "adk-server"
|
|
29
|
+
Requires-Dist: asgi-proxy-lib (==0.2a0) ; extra == "langgraph-server"
|
|
30
|
+
Requires-Dist: asgi-proxy-lib (==0.2a0) ; extra == "server"
|
|
31
|
+
Requires-Dist: asyncclick (>=8.0.1.2,<9.0.0)
|
|
32
|
+
Requires-Dist: cryptography (>=43.0.0) ; extra == "adk-server"
|
|
33
|
+
Requires-Dist: cryptography (>=43.0.0) ; extra == "langgraph-server"
|
|
34
|
+
Requires-Dist: cryptography (>=43.0.0) ; extra == "server"
|
|
35
|
+
Requires-Dist: fastapi (>=0.115.2) ; extra == "adk-server"
|
|
36
|
+
Requires-Dist: fastapi (>=0.115.2) ; extra == "langgraph-server"
|
|
37
|
+
Requires-Dist: fastapi (>=0.115.2) ; extra == "server"
|
|
38
|
+
Requires-Dist: google-adk (>=1.27.1,<3.0.0) ; extra == "adk-authoring"
|
|
39
|
+
Requires-Dist: google-adk (>=1.27.1,<3.0.0) ; extra == "adk-server"
|
|
40
|
+
Requires-Dist: gql[websockets] (==4.0.0)
|
|
41
|
+
Requires-Dist: graphql-core (==3.2.13)
|
|
42
|
+
Requires-Dist: greenlet (>=3.0.3,<4.0.0) ; extra == "adk-server"
|
|
43
|
+
Requires-Dist: greenlet (>=3.0.3,<4.0.0) ; extra == "langgraph-server"
|
|
44
|
+
Requires-Dist: greenlet (>=3.0.3,<4.0.0) ; extra == "server"
|
|
45
|
+
Requires-Dist: httpx (>=0.28.1,<0.29.0)
|
|
46
|
+
Requires-Dist: keyring (>=25.0.0)
|
|
47
|
+
Requires-Dist: langchain (>=1.0.0,<2.0.0) ; extra == "langgraph-authoring"
|
|
48
|
+
Requires-Dist: langchain (>=1.0.0,<2.0.0) ; extra == "langgraph-server"
|
|
49
|
+
Requires-Dist: langchain-mcp-adapters (>=0.1.11,<0.4.0) ; extra == "langgraph-authoring"
|
|
50
|
+
Requires-Dist: langchain-mcp-adapters (>=0.1.11,<0.4.0) ; extra == "langgraph-server"
|
|
51
|
+
Requires-Dist: langchain-openai (>=1.1.7,<2.0.0) ; extra == "langgraph-authoring"
|
|
52
|
+
Requires-Dist: langchain-openai (>=1.1.7,<2.0.0) ; extra == "langgraph-server"
|
|
53
|
+
Requires-Dist: langgraph (>=1.0.0,<2.0.0) ; extra == "langgraph-authoring"
|
|
54
|
+
Requires-Dist: langgraph (>=1.0.0,<2.0.0) ; extra == "langgraph-server"
|
|
55
|
+
Requires-Dist: langgraph-checkpoint-postgres (>=2.0.0,<4.0.0) ; extra == "langgraph-server"
|
|
56
|
+
Requires-Dist: langgraph-prebuilt (>=1.0.0) ; extra == "langgraph-authoring"
|
|
57
|
+
Requires-Dist: langgraph-prebuilt (>=1.0.0) ; extra == "langgraph-server"
|
|
58
|
+
Requires-Dist: litellm (>=1.93,<2.0) ; (python_version < "3.15") and (extra == "adk-authoring")
|
|
59
|
+
Requires-Dist: litellm (>=1.93,<2.0) ; (python_version < "3.15") and (extra == "adk-server")
|
|
60
|
+
Requires-Dist: mcp (>=1.24,<3.0.0) ; extra == "adk-authoring"
|
|
61
|
+
Requires-Dist: mcp (>=1.24,<3.0.0) ; extra == "adk-server"
|
|
62
|
+
Requires-Dist: opentelemetry-api (>=1.33.0) ; extra == "adk-server"
|
|
63
|
+
Requires-Dist: opentelemetry-api (>=1.33.0) ; extra == "langgraph-server"
|
|
64
|
+
Requires-Dist: opentelemetry-api (>=1.33.0) ; extra == "server"
|
|
65
|
+
Requires-Dist: opentelemetry-api (>=1.37.0) ; extra == "adk-authoring"
|
|
66
|
+
Requires-Dist: opentelemetry-api (>=1.37.0) ; extra == "adk-server"
|
|
67
|
+
Requires-Dist: opentelemetry-sdk (>=1.33.0) ; extra == "adk-server"
|
|
68
|
+
Requires-Dist: opentelemetry-sdk (>=1.33.0) ; extra == "langgraph-server"
|
|
69
|
+
Requires-Dist: opentelemetry-sdk (>=1.33.0) ; extra == "server"
|
|
70
|
+
Requires-Dist: opentelemetry-sdk (>=1.37.0) ; extra == "adk-authoring"
|
|
71
|
+
Requires-Dist: opentelemetry-sdk (>=1.37.0) ; extra == "adk-server"
|
|
72
|
+
Requires-Dist: psycopg[binary,pool] (>=3.1.12,<4.0.0) ; extra == "adk-server"
|
|
73
|
+
Requires-Dist: psycopg[binary,pool] (>=3.1.12,<4.0.0) ; extra == "langgraph-server"
|
|
74
|
+
Requires-Dist: psycopg[binary,pool] (>=3.1.12,<4.0.0) ; extra == "server"
|
|
75
|
+
Requires-Dist: pydantic (>=2.11.3)
|
|
76
|
+
Requires-Dist: pydantic-settings (>=2.3.4)
|
|
77
|
+
Requires-Dist: python-dotenv (>=1.2.0)
|
|
78
|
+
Requires-Dist: python-logstash-async (>=4.0.1,<5.0.0) ; extra == "adk-server"
|
|
79
|
+
Requires-Dist: python-logstash-async (>=4.0.1,<5.0.0) ; extra == "langgraph-server"
|
|
80
|
+
Requires-Dist: python-logstash-async (>=4.0.1,<5.0.0) ; extra == "server"
|
|
81
|
+
Requires-Dist: sse-starlette (>=1.6.5) ; extra == "adk-server"
|
|
82
|
+
Requires-Dist: sse-starlette (>=1.6.5) ; extra == "langgraph-server"
|
|
83
|
+
Requires-Dist: sse-starlette (>=1.6.5) ; extra == "server"
|
|
84
|
+
Requires-Dist: starlette ; extra == "adk-server"
|
|
85
|
+
Requires-Dist: starlette ; extra == "langgraph-server"
|
|
86
|
+
Requires-Dist: starlette ; extra == "server"
|
|
87
|
+
Requires-Dist: uvicorn (>=0.23.2) ; extra == "adk-server"
|
|
88
|
+
Requires-Dist: uvicorn (>=0.23.2) ; extra == "langgraph-server"
|
|
89
|
+
Requires-Dist: uvicorn (>=0.23.2) ; extra == "server"
|
|
90
|
+
Requires-Dist: websockets (==15.0.1)
|
|
91
|
+
Project-URL: Homepage, https://github.com/Terminal-Research/aion-python-sdk
|
|
92
|
+
Project-URL: Repository, https://github.com/Terminal-Research/aion-python-sdk
|
|
93
|
+
Description-Content-Type: text/markdown
|
|
94
|
+
|
|
95
|
+
# Aion Python SDK
|
|
96
|
+
|
|
97
|
+
[](https://pypi.org/project/aionto-sdk/)
|
|
98
|
+
[](https://pypi.org/project/aionto-sdk/)
|
|
99
|
+
[](https://docs.aion.to/sdk/python)
|
|
100
|
+
[](https://github.com/Terminal-Research/aion-python-sdk/blob/main/LICENSE)
|
|
101
|
+
|
|
102
|
+
A Python library that serves agents over the Agent-to-Agent (A2A) protocol and
|
|
103
|
+
runs them on the [Aion platform](https://www.aion.to/). Bring a LangGraph or
|
|
104
|
+
Google ADK agent, point an `aion.yaml` at it, and run `aion serve` โ you get an
|
|
105
|
+
A2A endpoint with an agent card, streaming and conversation state, plus a
|
|
106
|
+
terminal client to try it out.
|
|
107
|
+
|
|
108
|
+
## โจ Features
|
|
109
|
+
|
|
110
|
+
- **Framework agnostic**: LangGraph and Google ADK agents get the same
|
|
111
|
+
configuration and the same A2A surface.
|
|
112
|
+
- **A2A protocol compliant**: agent card, streaming and conversation state
|
|
113
|
+
without writing protocol code.
|
|
114
|
+
- **Four lines of configuration**: an agent needs one field โ where to find it.
|
|
115
|
+
Everything else has a default.
|
|
116
|
+
- **No account required**: runs fully locally; add credentials to reach the
|
|
117
|
+
Aion model service and MCP tools.
|
|
118
|
+
- **Multi-agent**: a built-in proxy fronts several agents behind one endpoint,
|
|
119
|
+
and `aion chat` talks to any of them from the terminal.
|
|
120
|
+
|
|
121
|
+
## ๐ Getting started
|
|
122
|
+
|
|
123
|
+
### Prerequisites
|
|
124
|
+
|
|
125
|
+
- Python 3.12, 3.13 or 3.14
|
|
126
|
+
- Node.js 22+ โ only for the bundled `aion chat` client
|
|
127
|
+
|
|
128
|
+
### ๐ง Installation
|
|
129
|
+
|
|
130
|
+
Install the SDK plus the extra for the framework you use.
|
|
131
|
+
|
|
132
|
+
| Feature | `uv` | `pip` |
|
|
133
|
+
|---|---|---|
|
|
134
|
+
| **Core SDK** โ the `aion` CLI and client libraries | `uv add aionto-sdk` | `pip install aionto-sdk` |
|
|
135
|
+
| **LangGraph agents** | `uv add "aionto-sdk[langgraph-server]"` | `pip install "aionto-sdk[langgraph-server]"` |
|
|
136
|
+
| **Google ADK agents** | `uv add "aionto-sdk[adk-server]"` | `pip install "aionto-sdk[adk-server]"` |
|
|
137
|
+
| **LangGraph authoring** | `uv add "aionto-sdk[langgraph-authoring]"` | `pip install "aionto-sdk[langgraph-authoring]"` |
|
|
138
|
+
| **ADK authoring** | `uv add "aionto-sdk[adk-authoring]"` | `pip install "aionto-sdk[adk-authoring]"` |
|
|
139
|
+
|
|
140
|
+
The `*-authoring` extras are the toolkit on its own โ Aion models, tools and
|
|
141
|
+
messaging inside your agent โ for agents that something other than `aion serve`
|
|
142
|
+
runs.
|
|
143
|
+
|
|
144
|
+
## ๐ก Example
|
|
145
|
+
|
|
146
|
+
A LangGraph agent, served over A2A, with four lines of configuration.
|
|
147
|
+
|
|
148
|
+
1. **Write the agent.** A plain LangGraph graph, returned uncompiled: Aion
|
|
149
|
+
compiles it and attaches the checkpointer, so conversation state comes for
|
|
150
|
+
free.
|
|
151
|
+
|
|
152
|
+
```python
|
|
153
|
+
# agent.py
|
|
154
|
+
from typing import Annotated, TypedDict
|
|
155
|
+
|
|
156
|
+
from langchain_core.messages import AIMessage, AnyMessage
|
|
157
|
+
from langgraph.graph import END, START, StateGraph
|
|
158
|
+
from langgraph.graph.message import add_messages
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
class State(TypedDict):
|
|
162
|
+
messages: Annotated[list[AnyMessage], add_messages]
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
def reply(state: State) -> dict:
|
|
166
|
+
question = state["messages"][-1].content
|
|
167
|
+
return {"messages": [AIMessage(content=f"Echo: {question}")]}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
def create_graph() -> StateGraph:
|
|
171
|
+
workflow = StateGraph(State)
|
|
172
|
+
workflow.add_node("reply", reply)
|
|
173
|
+
workflow.add_edge(START, "reply")
|
|
174
|
+
workflow.add_edge("reply", END)
|
|
175
|
+
return workflow
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
2. **Point Aion at it.** `path` is the only field an agent needs.
|
|
179
|
+
|
|
180
|
+
```yaml
|
|
181
|
+
# aion.yaml
|
|
182
|
+
aion:
|
|
183
|
+
agents:
|
|
184
|
+
support:
|
|
185
|
+
path: "./agent.py:create_graph"
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
3. **Serve it.** The port is assigned automatically and printed on startup.
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
aion serve
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
4. **Talk to it** from another terminal.
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
aion chat
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
That is a complete local run โ no account, no credentials. To connect the agent
|
|
201
|
+
to the platform, add `AION_CLIENT_ID` and `AION_CLIENT_SECRET` to a `.env`
|
|
202
|
+
beside the configuration.
|
|
203
|
+
|
|
204
|
+
For Google ADK the configuration is the same โ see the
|
|
205
|
+
[ADK quickstart](https://docs.aion.to/sdk/google-adk/quickstart).
|
|
206
|
+
|
|
207
|
+
## ๐ Documentation
|
|
208
|
+
|
|
209
|
+
Full documentation lives at [docs.aion.to](https://docs.aion.to/sdk/python):
|
|
210
|
+
|
|
211
|
+
- [LangGraph quickstart](https://docs.aion.to/sdk/langgraph/quickstart) ยท
|
|
212
|
+
[Google ADK quickstart](https://docs.aion.to/sdk/google-adk/quickstart)
|
|
213
|
+
- [`aion.yaml` reference](https://docs.aion.to/sdk/python/configuration/aion-yaml) ยท
|
|
214
|
+
[Environment variables](https://docs.aion.to/sdk/python/configuration/environment-variables)
|
|
215
|
+
- [CLI reference](https://docs.aion.to/sdk/python/running/cli) ยท
|
|
216
|
+
[Multiple agents and the proxy](https://docs.aion.to/sdk/python/running/multi-agent-proxy)
|
|
217
|
+
- [Troubleshooting](https://docs.aion.to/sdk/python/troubleshooting)
|
|
218
|
+
|
|
219
|
+
## ๐ค Contributing
|
|
220
|
+
|
|
221
|
+
Contributions are welcome. For development setup and how to run the test
|
|
222
|
+
suites, see the
|
|
223
|
+
[Development Guide](https://github.com/Terminal-Research/aion-python-sdk/blob/main/docs/development/README.md).
|
|
224
|
+
|
|
225
|
+
## ๐ License
|
|
226
|
+
|
|
227
|
+
This project is licensed under the MIT License. See the
|
|
228
|
+
[LICENSE](https://github.com/Terminal-Research/aion-python-sdk/blob/main/LICENSE)
|
|
229
|
+
file for more details.
|
|
230
|
+
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# Aion Python SDK
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/aionto-sdk/)
|
|
4
|
+
[](https://pypi.org/project/aionto-sdk/)
|
|
5
|
+
[](https://docs.aion.to/sdk/python)
|
|
6
|
+
[](https://github.com/Terminal-Research/aion-python-sdk/blob/main/LICENSE)
|
|
7
|
+
|
|
8
|
+
A Python library that serves agents over the Agent-to-Agent (A2A) protocol and
|
|
9
|
+
runs them on the [Aion platform](https://www.aion.to/). Bring a LangGraph or
|
|
10
|
+
Google ADK agent, point an `aion.yaml` at it, and run `aion serve` โ you get an
|
|
11
|
+
A2A endpoint with an agent card, streaming and conversation state, plus a
|
|
12
|
+
terminal client to try it out.
|
|
13
|
+
|
|
14
|
+
## โจ Features
|
|
15
|
+
|
|
16
|
+
- **Framework agnostic**: LangGraph and Google ADK agents get the same
|
|
17
|
+
configuration and the same A2A surface.
|
|
18
|
+
- **A2A protocol compliant**: agent card, streaming and conversation state
|
|
19
|
+
without writing protocol code.
|
|
20
|
+
- **Four lines of configuration**: an agent needs one field โ where to find it.
|
|
21
|
+
Everything else has a default.
|
|
22
|
+
- **No account required**: runs fully locally; add credentials to reach the
|
|
23
|
+
Aion model service and MCP tools.
|
|
24
|
+
- **Multi-agent**: a built-in proxy fronts several agents behind one endpoint,
|
|
25
|
+
and `aion chat` talks to any of them from the terminal.
|
|
26
|
+
|
|
27
|
+
## ๐ Getting started
|
|
28
|
+
|
|
29
|
+
### Prerequisites
|
|
30
|
+
|
|
31
|
+
- Python 3.12, 3.13 or 3.14
|
|
32
|
+
- Node.js 22+ โ only for the bundled `aion chat` client
|
|
33
|
+
|
|
34
|
+
### ๐ง Installation
|
|
35
|
+
|
|
36
|
+
Install the SDK plus the extra for the framework you use.
|
|
37
|
+
|
|
38
|
+
| Feature | `uv` | `pip` |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| **Core SDK** โ the `aion` CLI and client libraries | `uv add aionto-sdk` | `pip install aionto-sdk` |
|
|
41
|
+
| **LangGraph agents** | `uv add "aionto-sdk[langgraph-server]"` | `pip install "aionto-sdk[langgraph-server]"` |
|
|
42
|
+
| **Google ADK agents** | `uv add "aionto-sdk[adk-server]"` | `pip install "aionto-sdk[adk-server]"` |
|
|
43
|
+
| **LangGraph authoring** | `uv add "aionto-sdk[langgraph-authoring]"` | `pip install "aionto-sdk[langgraph-authoring]"` |
|
|
44
|
+
| **ADK authoring** | `uv add "aionto-sdk[adk-authoring]"` | `pip install "aionto-sdk[adk-authoring]"` |
|
|
45
|
+
|
|
46
|
+
The `*-authoring` extras are the toolkit on its own โ Aion models, tools and
|
|
47
|
+
messaging inside your agent โ for agents that something other than `aion serve`
|
|
48
|
+
runs.
|
|
49
|
+
|
|
50
|
+
## ๐ก Example
|
|
51
|
+
|
|
52
|
+
A LangGraph agent, served over A2A, with four lines of configuration.
|
|
53
|
+
|
|
54
|
+
1. **Write the agent.** A plain LangGraph graph, returned uncompiled: Aion
|
|
55
|
+
compiles it and attaches the checkpointer, so conversation state comes for
|
|
56
|
+
free.
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
# agent.py
|
|
60
|
+
from typing import Annotated, TypedDict
|
|
61
|
+
|
|
62
|
+
from langchain_core.messages import AIMessage, AnyMessage
|
|
63
|
+
from langgraph.graph import END, START, StateGraph
|
|
64
|
+
from langgraph.graph.message import add_messages
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
class State(TypedDict):
|
|
68
|
+
messages: Annotated[list[AnyMessage], add_messages]
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def reply(state: State) -> dict:
|
|
72
|
+
question = state["messages"][-1].content
|
|
73
|
+
return {"messages": [AIMessage(content=f"Echo: {question}")]}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def create_graph() -> StateGraph:
|
|
77
|
+
workflow = StateGraph(State)
|
|
78
|
+
workflow.add_node("reply", reply)
|
|
79
|
+
workflow.add_edge(START, "reply")
|
|
80
|
+
workflow.add_edge("reply", END)
|
|
81
|
+
return workflow
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
2. **Point Aion at it.** `path` is the only field an agent needs.
|
|
85
|
+
|
|
86
|
+
```yaml
|
|
87
|
+
# aion.yaml
|
|
88
|
+
aion:
|
|
89
|
+
agents:
|
|
90
|
+
support:
|
|
91
|
+
path: "./agent.py:create_graph"
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
3. **Serve it.** The port is assigned automatically and printed on startup.
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
aion serve
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
4. **Talk to it** from another terminal.
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
aion chat
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
That is a complete local run โ no account, no credentials. To connect the agent
|
|
107
|
+
to the platform, add `AION_CLIENT_ID` and `AION_CLIENT_SECRET` to a `.env`
|
|
108
|
+
beside the configuration.
|
|
109
|
+
|
|
110
|
+
For Google ADK the configuration is the same โ see the
|
|
111
|
+
[ADK quickstart](https://docs.aion.to/sdk/google-adk/quickstart).
|
|
112
|
+
|
|
113
|
+
## ๐ Documentation
|
|
114
|
+
|
|
115
|
+
Full documentation lives at [docs.aion.to](https://docs.aion.to/sdk/python):
|
|
116
|
+
|
|
117
|
+
- [LangGraph quickstart](https://docs.aion.to/sdk/langgraph/quickstart) ยท
|
|
118
|
+
[Google ADK quickstart](https://docs.aion.to/sdk/google-adk/quickstart)
|
|
119
|
+
- [`aion.yaml` reference](https://docs.aion.to/sdk/python/configuration/aion-yaml) ยท
|
|
120
|
+
[Environment variables](https://docs.aion.to/sdk/python/configuration/environment-variables)
|
|
121
|
+
- [CLI reference](https://docs.aion.to/sdk/python/running/cli) ยท
|
|
122
|
+
[Multiple agents and the proxy](https://docs.aion.to/sdk/python/running/multi-agent-proxy)
|
|
123
|
+
- [Troubleshooting](https://docs.aion.to/sdk/python/troubleshooting)
|
|
124
|
+
|
|
125
|
+
## ๐ค Contributing
|
|
126
|
+
|
|
127
|
+
Contributions are welcome. For development setup and how to run the test
|
|
128
|
+
suites, see the
|
|
129
|
+
[Development Guide](https://github.com/Terminal-Research/aion-python-sdk/blob/main/docs/development/README.md).
|
|
130
|
+
|
|
131
|
+
## ๐ License
|
|
132
|
+
|
|
133
|
+
This project is licensed under the MIT License. See the
|
|
134
|
+
[LICENSE](https://github.com/Terminal-Research/aion-python-sdk/blob/main/LICENSE)
|
|
135
|
+
file for more details.
|