nvidia-nat 1.2.0rc5__py3-none-any.whl → 1.2.0rc6__py3-none-any.whl
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.
- {aiq → nat}/agent/react_agent/agent.py +12 -12
- {aiq → nat}/agent/react_agent/register.py +20 -20
- {aiq → nat}/agent/reasoning_agent/reasoning_agent.py +14 -14
- {aiq → nat}/agent/rewoo_agent/agent.py +7 -7
- {aiq → nat}/agent/rewoo_agent/prompt.py +11 -12
- {aiq → nat}/agent/rewoo_agent/register.py +47 -49
- {aiq → nat}/agent/tool_calling_agent/agent.py +4 -4
- {aiq → nat}/agent/tool_calling_agent/register.py +8 -8
- {aiq → nat}/authentication/api_key/api_key_auth_provider.py +6 -6
- {aiq → nat}/authentication/api_key/api_key_auth_provider_config.py +5 -5
- {aiq → nat}/authentication/api_key/register.py +4 -4
- {aiq → nat}/authentication/http_basic_auth/http_basic_auth_provider.py +10 -10
- {aiq → nat}/authentication/http_basic_auth/register.py +4 -4
- {aiq → nat}/authentication/interfaces.py +6 -6
- {aiq → nat}/authentication/oauth2/oauth2_auth_code_flow_provider.py +11 -11
- {aiq → nat}/authentication/oauth2/oauth2_auth_code_flow_provider_config.py +1 -1
- {aiq → nat}/authentication/oauth2/register.py +4 -4
- {aiq → nat}/authentication/register.py +3 -3
- {aiq → nat}/builder/builder.py +30 -30
- {aiq → nat}/builder/component_utils.py +23 -23
- {aiq → nat}/builder/context.py +35 -29
- {aiq → nat}/builder/embedder.py +1 -1
- {aiq → nat}/builder/eval_builder.py +13 -13
- {aiq → nat}/builder/evaluator.py +3 -3
- {aiq → nat}/builder/front_end.py +11 -11
- {aiq → nat}/builder/function.py +8 -8
- {aiq → nat}/builder/function_base.py +6 -6
- {aiq → nat}/builder/function_info.py +3 -3
- {aiq → nat}/builder/intermediate_step_manager.py +13 -13
- {aiq → nat}/builder/llm.py +1 -1
- {aiq → nat}/builder/retriever.py +1 -1
- {aiq → nat}/builder/user_interaction_manager.py +14 -10
- {aiq → nat}/builder/workflow.py +25 -25
- {aiq → nat}/builder/workflow_builder.py +86 -86
- {aiq → nat}/cli/cli_utils/config_override.py +2 -2
- {aiq → nat}/cli/cli_utils/validation.py +4 -4
- {aiq → nat}/cli/commands/configure/channel/add.py +2 -2
- {aiq → nat}/cli/commands/configure/channel/channel.py +4 -6
- {aiq → nat}/cli/commands/configure/channel/remove.py +2 -2
- {aiq → nat}/cli/commands/configure/channel/update.py +2 -2
- {aiq → nat}/cli/commands/configure/configure.py +3 -3
- {aiq → nat}/cli/commands/evaluate.py +3 -3
- {aiq → nat}/cli/commands/info/info.py +5 -7
- {aiq → nat}/cli/commands/info/list_channels.py +1 -1
- {aiq → nat}/cli/commands/info/list_components.py +14 -14
- {aiq → nat}/cli/commands/info/list_mcp.py +106 -15
- {aiq → nat}/cli/commands/registry/publish.py +9 -9
- {aiq → nat}/cli/commands/registry/pull.py +10 -10
- {aiq → nat}/cli/commands/registry/registry.py +5 -7
- {aiq → nat}/cli/commands/registry/remove.py +8 -8
- {aiq → nat}/cli/commands/registry/search.py +15 -15
- {aiq → nat}/cli/commands/sizing/calc.py +3 -3
- {aiq → nat}/cli/commands/start.py +15 -15
- {aiq → nat}/cli/commands/uninstall.py +5 -5
- {aiq → nat}/cli/commands/validate.py +1 -1
- {aiq → nat}/cli/commands/workflow/templates/pyproject.toml.j2 +4 -4
- {aiq → nat}/cli/commands/workflow/templates/workflow.py.j2 +4 -4
- {aiq → nat}/cli/commands/workflow/workflow.py +3 -3
- {aiq → nat}/cli/commands/workflow/workflow_commands.py +15 -11
- {aiq → nat}/cli/entrypoint.py +6 -6
- {aiq → nat}/cli/main.py +15 -2
- {aiq → nat}/cli/register_workflow.py +70 -70
- {aiq → nat}/cli/type_registry.py +82 -82
- {aiq → nat}/data_models/api_server.py +121 -99
- {aiq → nat}/data_models/authentication.py +2 -2
- {aiq → nat}/data_models/component.py +5 -1
- {aiq → nat}/data_models/component_ref.py +12 -12
- {aiq → nat}/data_models/config.py +17 -13
- {aiq → nat}/data_models/dataset_handler.py +58 -12
- {aiq → nat}/data_models/discovery_metadata.py +36 -66
- {aiq → nat}/data_models/evaluate.py +9 -9
- {aiq → nat}/data_models/intermediate_step.py +7 -7
- {aiq → nat}/data_models/retriever.py +2 -2
- {aiq → nat}/data_models/span.py +10 -7
- {aiq → nat}/data_models/step_adaptor.py +1 -1
- {aiq → nat}/data_models/telemetry_exporter.py +2 -2
- {aiq → nat}/embedder/nim_embedder.py +5 -5
- {aiq → nat}/embedder/openai_embedder.py +5 -5
- {aiq/retriever → nat/embedder}/register.py +2 -2
- {aiq → nat}/eval/config.py +4 -4
- {aiq → nat}/eval/dataset_handler/dataset_downloader.py +1 -1
- {aiq → nat}/eval/dataset_handler/dataset_filter.py +1 -1
- {aiq → nat}/eval/dataset_handler/dataset_handler.py +127 -14
- {aiq → nat}/eval/evaluate.py +38 -34
- {aiq → nat}/eval/evaluator/base_evaluator.py +9 -5
- {aiq → nat}/eval/evaluator/evaluator_model.py +4 -4
- {aiq → nat}/eval/intermediate_step_adapter.py +2 -2
- {aiq → nat}/eval/rag_evaluator/evaluate.py +8 -8
- {aiq → nat}/eval/rag_evaluator/register.py +7 -7
- {aiq → nat}/eval/remote_workflow.py +8 -8
- {aiq → nat}/eval/runners/config.py +2 -2
- {aiq → nat}/eval/runners/multi_eval_runner.py +4 -4
- {aiq → nat}/eval/runtime_event_subscriber.py +3 -3
- {aiq → nat}/eval/swe_bench_evaluator/evaluate.py +6 -6
- {aiq → nat}/eval/swe_bench_evaluator/register.py +4 -4
- {aiq → nat}/eval/trajectory_evaluator/evaluate.py +5 -5
- {aiq → nat}/eval/trajectory_evaluator/register.py +5 -5
- {aiq → nat}/eval/tunable_rag_evaluator/evaluate.py +3 -3
- {aiq → nat}/eval/tunable_rag_evaluator/register.py +6 -6
- {aiq → nat}/eval/utils/output_uploader.py +1 -1
- {aiq → nat}/eval/utils/weave_eval.py +6 -6
- {aiq → nat}/experimental/decorators/experimental_warning_decorator.py +6 -2
- {aiq → nat}/experimental/test_time_compute/editing/iterative_plan_refinement_editor.py +10 -10
- {aiq → nat}/experimental/test_time_compute/editing/llm_as_a_judge_editor.py +10 -10
- {aiq → nat}/experimental/test_time_compute/editing/motivation_aware_summarization.py +10 -10
- {aiq → nat}/experimental/test_time_compute/functions/execute_score_select_function.py +10 -10
- {aiq → nat}/experimental/test_time_compute/functions/plan_select_execute_function.py +17 -17
- aiq/experimental/test_time_compute/functions/its_tool_orchestration_function.py → nat/experimental/test_time_compute/functions/ttc_tool_orchestration_function.py +12 -12
- aiq/experimental/test_time_compute/functions/its_tool_wrapper_function.py → nat/experimental/test_time_compute/functions/ttc_tool_wrapper_function.py +10 -10
- {aiq → nat}/experimental/test_time_compute/models/editor_config.py +2 -2
- {aiq → nat}/experimental/test_time_compute/models/scoring_config.py +2 -2
- {aiq → nat}/experimental/test_time_compute/models/search_config.py +2 -2
- {aiq → nat}/experimental/test_time_compute/models/selection_config.py +2 -2
- {aiq → nat}/experimental/test_time_compute/models/strategy_base.py +4 -4
- {aiq → nat}/experimental/test_time_compute/register.py +2 -2
- {aiq → nat}/experimental/test_time_compute/scoring/llm_based_agent_scorer.py +11 -11
- {aiq → nat}/experimental/test_time_compute/scoring/llm_based_plan_scorer.py +11 -11
- {aiq → nat}/experimental/test_time_compute/scoring/motivation_aware_scorer.py +10 -10
- {aiq → nat}/experimental/test_time_compute/search/multi_llm_planner.py +10 -10
- {aiq → nat}/experimental/test_time_compute/search/multi_query_retrieval_search.py +10 -10
- {aiq → nat}/experimental/test_time_compute/search/single_shot_multi_plan_planner.py +11 -11
- {aiq → nat}/experimental/test_time_compute/selection/best_of_n_selector.py +7 -7
- {aiq → nat}/experimental/test_time_compute/selection/llm_based_agent_output_selector.py +11 -11
- {aiq → nat}/experimental/test_time_compute/selection/llm_based_output_merging_selector.py +11 -11
- {aiq → nat}/experimental/test_time_compute/selection/llm_based_plan_selector.py +11 -11
- {aiq → nat}/experimental/test_time_compute/selection/threshold_selector.py +7 -7
- {aiq → nat}/front_ends/console/authentication_flow_handler.py +6 -6
- {aiq → nat}/front_ends/console/console_front_end_config.py +2 -2
- {aiq → nat}/front_ends/console/console_front_end_plugin.py +9 -9
- {aiq → nat}/front_ends/console/register.py +5 -5
- {aiq → nat}/front_ends/fastapi/auth_flow_handlers/http_flow_handler.py +4 -4
- {aiq → nat}/front_ends/fastapi/auth_flow_handlers/websocket_flow_handler.py +6 -6
- {aiq → nat}/front_ends/fastapi/fastapi_front_end_config.py +22 -15
- {aiq → nat}/front_ends/fastapi/fastapi_front_end_plugin.py +10 -10
- {aiq → nat}/front_ends/fastapi/fastapi_front_end_plugin_worker.py +110 -115
- {aiq → nat}/front_ends/fastapi/intermediate_steps_subscriber.py +10 -10
- {aiq → nat}/front_ends/fastapi/main.py +8 -8
- {aiq → nat}/front_ends/fastapi/message_handler.py +58 -36
- {aiq → nat}/front_ends/fastapi/message_validator.py +55 -48
- {aiq → nat}/front_ends/fastapi/register.py +5 -5
- {aiq → nat}/front_ends/fastapi/response_helpers.py +26 -26
- {aiq → nat}/front_ends/fastapi/step_adaptor.py +35 -37
- {aiq → nat}/front_ends/mcp/mcp_front_end_config.py +12 -8
- nat/front_ends/mcp/mcp_front_end_plugin.py +81 -0
- nat/front_ends/mcp/mcp_front_end_plugin_worker.py +143 -0
- {aiq → nat}/front_ends/mcp/register.py +5 -5
- {aiq → nat}/front_ends/mcp/tool_converter.py +20 -21
- {aiq → nat}/front_ends/simple_base/simple_front_end_plugin_base.py +6 -6
- {aiq → nat}/llm/aws_bedrock_llm.py +5 -5
- {aiq → nat}/llm/nim_llm.py +5 -5
- {aiq → nat}/llm/openai_llm.py +5 -5
- {aiq → nat}/memory/__init__.py +2 -2
- nat/meta/pypi.md +58 -0
- {aiq → nat}/object_store/__init__.py +2 -2
- {aiq → nat}/object_store/in_memory_object_store.py +6 -6
- {aiq → nat}/observability/exporter/base_exporter.py +9 -9
- {aiq → nat}/observability/exporter/exporter.py +1 -1
- {aiq → nat}/observability/exporter/file_exporter.py +6 -6
- {aiq → nat}/observability/exporter/processing_exporter.py +9 -9
- {aiq → nat}/observability/exporter/raw_exporter.py +4 -4
- {aiq → nat}/observability/exporter/span_exporter.py +57 -34
- {aiq → nat}/observability/exporter_manager.py +6 -6
- {aiq → nat}/observability/mixin/file_mixin.py +2 -2
- {aiq → nat}/observability/processor/batching_processor.py +1 -1
- {aiq → nat}/observability/processor/callback_processor.py +1 -1
- {aiq → nat}/observability/processor/intermediate_step_serializer.py +4 -4
- {aiq → nat}/observability/processor/processor.py +1 -1
- {aiq → nat}/observability/register.py +7 -7
- {aiq → nat}/profiler/calc/calc_runner.py +18 -18
- {aiq → nat}/profiler/calc/calculations.py +3 -3
- {aiq → nat}/profiler/calc/plot.py +2 -2
- {aiq → nat}/profiler/callbacks/agno_callback_handler.py +14 -14
- {aiq → nat}/profiler/callbacks/langchain_callback_handler.py +11 -11
- {aiq → nat}/profiler/callbacks/llama_index_callback_handler.py +12 -12
- {aiq → nat}/profiler/callbacks/semantic_kernel_callback_handler.py +11 -11
- {aiq → nat}/profiler/data_models.py +2 -2
- {aiq → nat}/profiler/decorators/framework_wrapper.py +6 -6
- {aiq → nat}/profiler/decorators/function_tracking.py +10 -10
- {aiq → nat}/profiler/forecasting/model_trainer.py +5 -5
- {aiq → nat}/profiler/forecasting/models/linear_model.py +5 -4
- {aiq → nat}/profiler/forecasting/models/random_forest_regressor.py +5 -4
- {aiq → nat}/profiler/inference_optimization/bottleneck_analysis/nested_stack_analysis.py +7 -7
- {aiq → nat}/profiler/inference_optimization/bottleneck_analysis/simple_stack_analysis.py +4 -4
- {aiq → nat}/profiler/inference_optimization/experimental/concurrency_spike_analysis.py +6 -6
- {aiq → nat}/profiler/inference_optimization/experimental/prefix_span_analysis.py +6 -6
- {aiq → nat}/profiler/inference_optimization/llm_metrics.py +2 -2
- {aiq → nat}/profiler/inference_optimization/prompt_caching.py +5 -5
- {aiq → nat}/profiler/inference_optimization/token_uniqueness.py +4 -4
- {aiq → nat}/profiler/inference_optimization/workflow_runtimes.py +3 -3
- {aiq → nat}/profiler/intermediate_property_adapter.py +3 -3
- {aiq → nat}/profiler/profile_runner.py +17 -17
- {aiq → nat}/profiler/utils.py +4 -4
- {aiq → nat}/registry_handlers/local/local_handler.py +19 -19
- {aiq → nat}/registry_handlers/local/register_local.py +4 -4
- {aiq → nat}/registry_handlers/metadata_factory.py +7 -7
- {aiq → nat}/registry_handlers/package_utils.py +37 -33
- {aiq → nat}/registry_handlers/pypi/pypi_handler.py +21 -21
- {aiq → nat}/registry_handlers/pypi/register_pypi.py +6 -6
- {aiq → nat}/registry_handlers/registry_handler_base.py +21 -21
- {aiq → nat}/registry_handlers/rest/register_rest.py +7 -7
- {aiq → nat}/registry_handlers/rest/rest_handler.py +19 -19
- {aiq → nat}/registry_handlers/schemas/package.py +3 -3
- {aiq → nat}/registry_handlers/schemas/publish.py +17 -12
- {aiq → nat}/registry_handlers/schemas/pull.py +6 -6
- {aiq → nat}/registry_handlers/schemas/remove.py +2 -2
- {aiq → nat}/registry_handlers/schemas/search.py +11 -11
- {aiq → nat}/retriever/interface.py +6 -2
- {aiq → nat}/retriever/milvus/register.py +7 -7
- {aiq → nat}/retriever/milvus/retriever.py +8 -8
- {aiq → nat}/retriever/models.py +10 -7
- {aiq → nat}/retriever/nemo_retriever/register.py +6 -6
- {aiq → nat}/retriever/nemo_retriever/retriever.py +10 -10
- {aiq/embedder → nat/retriever}/register.py +2 -4
- {aiq → nat}/runtime/loader.py +38 -33
- {aiq → nat}/runtime/runner.py +30 -25
- {aiq → nat}/runtime/session.py +19 -15
- {aiq → nat}/runtime/user_metadata.py +1 -1
- {aiq → nat}/settings/global_settings.py +11 -11
- {aiq → nat}/tool/chat_completion.py +6 -6
- {aiq → nat}/tool/code_execution/README.md +2 -2
- {aiq → nat}/tool/code_execution/code_sandbox.py +1 -1
- {aiq → nat}/tool/code_execution/register.py +5 -5
- {aiq → nat}/tool/code_execution/test_code_execution_sandbox.py +1 -1
- {aiq → nat}/tool/datetime_tools.py +4 -4
- {aiq → nat}/tool/document_search.py +6 -6
- {aiq → nat}/tool/github_tools/create_github_commit.py +4 -4
- {aiq → nat}/tool/github_tools/create_github_issue.py +4 -4
- {aiq → nat}/tool/github_tools/create_github_pr.py +4 -4
- {aiq → nat}/tool/github_tools/get_github_file.py +4 -4
- {aiq → nat}/tool/github_tools/get_github_issue.py +4 -4
- {aiq → nat}/tool/github_tools/get_github_pr.py +4 -4
- {aiq → nat}/tool/github_tools/update_github_issue.py +4 -4
- {aiq → nat}/tool/mcp/exceptions.py +1 -1
- {aiq → nat}/tool/mcp/mcp_client.py +2 -2
- {aiq → nat}/tool/mcp/mcp_tool.py +7 -7
- {aiq → nat}/tool/memory_tools/add_memory_tool.py +6 -6
- {aiq → nat}/tool/memory_tools/delete_memory_tool.py +6 -6
- {aiq → nat}/tool/memory_tools/get_memory_tool.py +6 -6
- {aiq → nat}/tool/nvidia_rag.py +4 -4
- {aiq → nat}/tool/retriever.py +20 -15
- {aiq → nat}/tool/server_tools.py +16 -16
- {aiq → nat}/utils/dump_distro_mapping.py +2 -2
- {aiq → nat}/utils/exception_handlers/mcp.py +8 -8
- {aiq → nat}/utils/io/yaml_tools.py +1 -1
- {aiq → nat}/utils/metadata_utils.py +2 -2
- {aiq → nat}/utils/reactive/base/observable_base.py +2 -2
- {aiq → nat}/utils/reactive/base/subject_base.py +1 -1
- {aiq → nat}/utils/reactive/observable.py +5 -5
- {aiq → nat}/utils/reactive/observer.py +1 -1
- {aiq → nat}/utils/reactive/subject.py +4 -4
- {aiq → nat}/utils/reactive/subscription.py +1 -1
- {aiq → nat}/utils/settings/global_settings.py +4 -4
- {aiq → nat}/utils/type_converter.py +1 -1
- {nvidia_nat-1.2.0rc5.dist-info → nvidia_nat-1.2.0rc6.dist-info}/METADATA +37 -37
- nvidia_nat-1.2.0rc6.dist-info/RECORD +434 -0
- nvidia_nat-1.2.0rc6.dist-info/entry_points.txt +21 -0
- nvidia_nat-1.2.0rc6.dist-info/top_level.txt +1 -0
- aiq/embedder/langchain_client.py +0 -41
- aiq/front_ends/mcp/mcp_front_end_plugin.py +0 -93
- aiq/meta/module_to_distro.json +0 -3
- aiq/meta/pypi.md +0 -58
- nvidia_nat-1.2.0rc5.dist-info/RECORD +0 -435
- nvidia_nat-1.2.0rc5.dist-info/entry_points.txt +0 -20
- nvidia_nat-1.2.0rc5.dist-info/top_level.txt +0 -1
- {aiq → nat}/agent/__init__.py +0 -0
- {aiq → nat}/agent/base.py +0 -0
- {aiq → nat}/agent/dual_node.py +0 -0
- {aiq → nat}/agent/react_agent/__init__.py +0 -0
- {aiq → nat}/agent/react_agent/output_parser.py +0 -0
- {aiq → nat}/agent/react_agent/prompt.py +0 -0
- {aiq → nat}/agent/reasoning_agent/__init__.py +0 -0
- {aiq → nat}/agent/register.py +0 -0
- {aiq → nat}/agent/rewoo_agent/__init__.py +0 -0
- {aiq → nat}/agent/tool_calling_agent/__init__.py +0 -0
- {aiq → nat}/authentication/__init__.py +0 -0
- {aiq → nat}/authentication/api_key/__init__.py +0 -0
- {aiq → nat}/authentication/exceptions/__init__.py +0 -0
- {aiq → nat}/authentication/exceptions/api_key_exceptions.py +0 -0
- {aiq → nat}/authentication/http_basic_auth/__init__.py +0 -0
- {aiq → nat}/authentication/oauth2/__init__.py +0 -0
- {aiq → nat}/builder/__init__.py +0 -0
- {aiq → nat}/builder/framework_enum.py +0 -0
- {aiq → nat}/cli/__init__.py +0 -0
- {aiq → nat}/cli/cli_utils/__init__.py +0 -0
- {aiq → nat}/cli/commands/__init__.py +0 -0
- {aiq → nat}/cli/commands/configure/__init__.py +0 -0
- {aiq → nat}/cli/commands/configure/channel/__init__.py +0 -0
- {aiq → nat}/cli/commands/info/__init__.py +0 -0
- {aiq → nat}/cli/commands/registry/__init__.py +0 -0
- {aiq → nat}/cli/commands/sizing/__init__.py +0 -0
- {aiq → nat}/cli/commands/sizing/sizing.py +0 -0
- {aiq → nat}/cli/commands/workflow/__init__.py +0 -0
- {aiq → nat}/cli/commands/workflow/templates/__init__.py.j2 +0 -0
- {aiq → nat}/cli/commands/workflow/templates/config.yml.j2 +0 -0
- {aiq → nat}/cli/commands/workflow/templates/register.py.j2 +0 -0
- {aiq → nat}/data_models/__init__.py +0 -0
- {aiq → nat}/data_models/common.py +0 -0
- {aiq → nat}/data_models/embedder.py +0 -0
- {aiq → nat}/data_models/evaluator.py +0 -0
- {aiq → nat}/data_models/front_end.py +0 -0
- {aiq → nat}/data_models/function.py +0 -0
- {aiq → nat}/data_models/function_dependencies.py +0 -0
- {aiq → nat}/data_models/interactive.py +0 -0
- {aiq → nat}/data_models/invocation_node.py +0 -0
- {aiq → nat}/data_models/llm.py +0 -0
- {aiq → nat}/data_models/logging.py +0 -0
- {aiq → nat}/data_models/memory.py +0 -0
- {aiq → nat}/data_models/object_store.py +0 -0
- {aiq → nat}/data_models/profiler.py +0 -0
- {aiq → nat}/data_models/registry_handler.py +0 -0
- {aiq → nat}/data_models/retry_mixin.py +0 -0
- {aiq → nat}/data_models/streaming.py +0 -0
- {aiq → nat}/data_models/swe_bench_model.py +0 -0
- {aiq → nat}/data_models/ttc_strategy.py +0 -0
- {aiq → nat}/embedder/__init__.py +0 -0
- {aiq → nat}/eval/__init__.py +0 -0
- {aiq → nat}/eval/dataset_handler/__init__.py +0 -0
- {aiq → nat}/eval/evaluator/__init__.py +0 -0
- {aiq → nat}/eval/rag_evaluator/__init__.py +0 -0
- {aiq → nat}/eval/register.py +0 -0
- {aiq → nat}/eval/runners/__init__.py +0 -0
- {aiq → nat}/eval/swe_bench_evaluator/__init__.py +0 -0
- {aiq → nat}/eval/trajectory_evaluator/__init__.py +0 -0
- {aiq → nat}/eval/tunable_rag_evaluator/__init__.py +0 -0
- {aiq → nat}/eval/usage_stats.py +0 -0
- {aiq → nat}/eval/utils/__init__.py +0 -0
- {aiq → nat}/eval/utils/tqdm_position_registry.py +0 -0
- {aiq → nat}/experimental/__init__.py +0 -0
- {aiq → nat}/experimental/decorators/__init__.py +0 -0
- {aiq → nat}/experimental/test_time_compute/__init__.py +0 -0
- {aiq → nat}/experimental/test_time_compute/editing/__init__.py +0 -0
- {aiq → nat}/experimental/test_time_compute/functions/__init__.py +0 -0
- {aiq → nat}/experimental/test_time_compute/models/__init__.py +0 -0
- {aiq → nat}/experimental/test_time_compute/models/stage_enums.py +0 -0
- {aiq → nat}/experimental/test_time_compute/models/tool_use_config.py +0 -0
- {aiq → nat}/experimental/test_time_compute/models/ttc_item.py +0 -0
- {aiq → nat}/experimental/test_time_compute/scoring/__init__.py +0 -0
- {aiq → nat}/experimental/test_time_compute/search/__init__.py +0 -0
- {aiq → nat}/experimental/test_time_compute/selection/__init__.py +0 -0
- {aiq → nat}/front_ends/__init__.py +0 -0
- {aiq → nat}/front_ends/console/__init__.py +0 -0
- {aiq → nat}/front_ends/cron/__init__.py +0 -0
- {aiq → nat}/front_ends/fastapi/__init__.py +0 -0
- {aiq → nat}/front_ends/fastapi/auth_flow_handlers/__init__.py +0 -0
- {aiq → nat}/front_ends/fastapi/fastapi_front_end_controller.py +0 -0
- {aiq → nat}/front_ends/fastapi/html_snippets/__init__.py +0 -0
- {aiq → nat}/front_ends/fastapi/html_snippets/auth_code_grant_success.py +0 -0
- {aiq → nat}/front_ends/fastapi/job_store.py +0 -0
- {aiq → nat}/front_ends/mcp/__init__.py +0 -0
- {aiq → nat}/front_ends/register.py +0 -0
- {aiq → nat}/front_ends/simple_base/__init__.py +0 -0
- {aiq → nat}/llm/__init__.py +0 -0
- {aiq → nat}/llm/register.py +0 -0
- {aiq → nat}/llm/utils/__init__.py +0 -0
- {aiq → nat}/llm/utils/env_config_value.py +0 -0
- {aiq → nat}/llm/utils/error.py +0 -0
- {aiq → nat}/memory/interfaces.py +0 -0
- {aiq → nat}/memory/models.py +0 -0
- {aiq → nat}/object_store/interfaces.py +0 -0
- {aiq → nat}/object_store/models.py +0 -0
- {aiq → nat}/object_store/register.py +0 -0
- {aiq → nat}/observability/__init__.py +0 -0
- {aiq → nat}/observability/exporter/__init__.py +0 -0
- {aiq → nat}/observability/mixin/__init__.py +0 -0
- {aiq → nat}/observability/mixin/batch_config_mixin.py +0 -0
- {aiq → nat}/observability/mixin/collector_config_mixin.py +0 -0
- {aiq → nat}/observability/mixin/file_mode.py +0 -0
- {aiq → nat}/observability/mixin/resource_conflict_mixin.py +0 -0
- {aiq → nat}/observability/mixin/serialize_mixin.py +0 -0
- {aiq → nat}/observability/mixin/type_introspection_mixin.py +0 -0
- {aiq → nat}/observability/processor/__init__.py +0 -0
- {aiq → nat}/observability/utils/__init__.py +0 -0
- {aiq → nat}/observability/utils/dict_utils.py +0 -0
- {aiq → nat}/observability/utils/time_utils.py +0 -0
- {aiq → nat}/plugins/.namespace +0 -0
- {aiq → nat}/profiler/__init__.py +0 -0
- {aiq → nat}/profiler/calc/__init__.py +0 -0
- {aiq → nat}/profiler/calc/data_models.py +0 -0
- {aiq → nat}/profiler/callbacks/__init__.py +0 -0
- {aiq → nat}/profiler/callbacks/base_callback_class.py +0 -0
- {aiq → nat}/profiler/callbacks/token_usage_base_model.py +0 -0
- {aiq → nat}/profiler/data_frame_row.py +0 -0
- {aiq → nat}/profiler/decorators/__init__.py +0 -0
- {aiq → nat}/profiler/forecasting/__init__.py +0 -0
- {aiq → nat}/profiler/forecasting/config.py +0 -0
- {aiq → nat}/profiler/forecasting/models/__init__.py +0 -0
- {aiq → nat}/profiler/forecasting/models/forecasting_base_model.py +0 -0
- {aiq → nat}/profiler/inference_metrics_model.py +0 -0
- {aiq → nat}/profiler/inference_optimization/__init__.py +0 -0
- {aiq → nat}/profiler/inference_optimization/bottleneck_analysis/__init__.py +0 -0
- {aiq → nat}/profiler/inference_optimization/data_models.py +0 -0
- {aiq → nat}/profiler/inference_optimization/experimental/__init__.py +0 -0
- {aiq → nat}/registry_handlers/__init__.py +0 -0
- {aiq → nat}/registry_handlers/local/__init__.py +0 -0
- {aiq → nat}/registry_handlers/pypi/__init__.py +0 -0
- {aiq → nat}/registry_handlers/register.py +0 -0
- {aiq → nat}/registry_handlers/rest/__init__.py +0 -0
- {aiq → nat}/registry_handlers/schemas/__init__.py +0 -0
- {aiq → nat}/registry_handlers/schemas/headers.py +0 -0
- {aiq → nat}/registry_handlers/schemas/status.py +0 -0
- {aiq → nat}/retriever/__init__.py +0 -0
- {aiq → nat}/retriever/milvus/__init__.py +0 -0
- {aiq → nat}/retriever/nemo_retriever/__init__.py +0 -0
- {aiq → nat}/runtime/__init__.py +0 -0
- {aiq → nat}/settings/__init__.py +0 -0
- {aiq → nat}/test/.namespace +0 -0
- {aiq → nat}/tool/__init__.py +0 -0
- {aiq → nat}/tool/code_execution/__init__.py +0 -0
- {aiq → nat}/tool/code_execution/local_sandbox/.gitignore +0 -0
- {aiq → nat}/tool/code_execution/local_sandbox/Dockerfile.sandbox +0 -0
- {aiq → nat}/tool/code_execution/local_sandbox/__init__.py +0 -0
- {aiq → nat}/tool/code_execution/local_sandbox/local_sandbox_server.py +0 -0
- {aiq → nat}/tool/code_execution/local_sandbox/sandbox.requirements.txt +0 -0
- {aiq → nat}/tool/code_execution/local_sandbox/start_local_sandbox.sh +0 -0
- {aiq → nat}/tool/code_execution/utils.py +0 -0
- {aiq → nat}/tool/github_tools/__init__.py +0 -0
- {aiq → nat}/tool/mcp/__init__.py +0 -0
- {aiq → nat}/tool/memory_tools/__init__.py +0 -0
- {aiq → nat}/tool/register.py +0 -0
- {aiq → nat}/utils/__init__.py +0 -0
- {aiq → nat}/utils/data_models/__init__.py +0 -0
- {aiq → nat}/utils/data_models/schema_validator.py +0 -0
- {aiq → nat}/utils/debugging_utils.py +0 -0
- {aiq → nat}/utils/exception_handlers/__init__.py +0 -0
- {aiq → nat}/utils/exception_handlers/automatic_retries.py +0 -0
- {aiq → nat}/utils/exception_handlers/schemas.py +0 -0
- {aiq → nat}/utils/io/__init__.py +0 -0
- {aiq → nat}/utils/io/model_processing.py +0 -0
- {aiq → nat}/utils/log_utils.py +0 -0
- {aiq → nat}/utils/optional_imports.py +0 -0
- {aiq → nat}/utils/producer_consumer_queue.py +0 -0
- {aiq → nat}/utils/reactive/__init__.py +0 -0
- {aiq → nat}/utils/reactive/base/__init__.py +0 -0
- {aiq → nat}/utils/reactive/base/observer_base.py +0 -0
- {aiq → nat}/utils/settings/__init__.py +0 -0
- {aiq → nat}/utils/string_utils.py +0 -0
- {aiq → nat}/utils/type_utils.py +0 -0
- {aiq → nat}/utils/url_utils.py +0 -0
- {nvidia_nat-1.2.0rc5.dist-info → nvidia_nat-1.2.0rc6.dist-info}/WHEEL +0 -0
- {nvidia_nat-1.2.0rc5.dist-info → nvidia_nat-1.2.0rc6.dist-info}/licenses/LICENSE-3rd-party.txt +0 -0
- {nvidia_nat-1.2.0rc5.dist-info → nvidia_nat-1.2.0rc6.dist-info}/licenses/LICENSE.md +0 -0
|
@@ -2,10 +2,10 @@ import logging
|
|
|
2
2
|
|
|
3
3
|
from pydantic import Field
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
5
|
+
from nat.builder.builder import Builder
|
|
6
|
+
from nat.builder.function_info import FunctionInfo
|
|
7
|
+
from nat.cli.register_workflow import register_function
|
|
8
|
+
from nat.data_models.function import FunctionBaseConfig
|
|
9
9
|
|
|
10
10
|
logger = logging.getLogger(__name__)
|
|
11
11
|
|
|
@@ -17,9 +17,9 @@ import logging
|
|
|
17
17
|
|
|
18
18
|
import click
|
|
19
19
|
|
|
20
|
-
from
|
|
21
|
-
from
|
|
22
|
-
from
|
|
20
|
+
from nat.cli.commands.workflow.workflow_commands import create_command
|
|
21
|
+
from nat.cli.commands.workflow.workflow_commands import delete_command
|
|
22
|
+
from nat.cli.commands.workflow.workflow_commands import reinstall_command
|
|
23
23
|
|
|
24
24
|
logger = logging.getLogger(__name__)
|
|
25
25
|
|
|
@@ -27,12 +27,12 @@ from jinja2 import FileSystemLoader
|
|
|
27
27
|
logger = logging.getLogger(__name__)
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class PackageError(Exception):
|
|
31
31
|
pass
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
def get_repo_root():
|
|
35
|
-
return find_package_root("
|
|
35
|
+
return find_package_root("nvidia-nat")
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
def _get_module_name(workflow_name: str):
|
|
@@ -93,12 +93,12 @@ def find_package_root(package_name: str) -> Path | None:
|
|
|
93
93
|
return None
|
|
94
94
|
|
|
95
95
|
except PackageNotFoundError as e:
|
|
96
|
-
raise
|
|
96
|
+
raise PackageError(f"Package {package_name} is not installed") from e
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
def get_workflow_path_from_name(workflow_name: str):
|
|
100
100
|
"""
|
|
101
|
-
Look up the location of an installed
|
|
101
|
+
Look up the location of an installed NAT workflow and retrieve the root directory of the installed workflow.
|
|
102
102
|
|
|
103
103
|
Args:
|
|
104
104
|
workflow_name: The name of the workflow.
|
|
@@ -112,7 +112,7 @@ def get_workflow_path_from_name(workflow_name: str):
|
|
|
112
112
|
package_root = find_package_root(module_name)
|
|
113
113
|
return package_root
|
|
114
114
|
|
|
115
|
-
except
|
|
115
|
+
except PackageError as e:
|
|
116
116
|
logger.info("Unable to get the directory path for %s: %s", workflow_name, e)
|
|
117
117
|
return None
|
|
118
118
|
|
|
@@ -127,13 +127,13 @@ def get_workflow_path_from_name(workflow_name: str):
|
|
|
127
127
|
"within. Defaults to the present working directory.")
|
|
128
128
|
@click.option(
|
|
129
129
|
"--description",
|
|
130
|
-
default="
|
|
130
|
+
default="NAT function template. Please update the description.",
|
|
131
131
|
help="""A description of the component being created. Will be used to populate the docstring and will describe the
|
|
132
|
-
component when inspecting installed components using '
|
|
132
|
+
component when inspecting installed components using 'nat info component'""")
|
|
133
133
|
# pylint: disable=missing-param-doc
|
|
134
134
|
def create_command(workflow_name: str, install: bool, workflow_dir: str, description: str):
|
|
135
135
|
"""
|
|
136
|
-
Create a new
|
|
136
|
+
Create a new NAT workflow using templates.
|
|
137
137
|
|
|
138
138
|
Args:
|
|
139
139
|
workflow_name (str): The name of the new workflow.
|
|
@@ -145,7 +145,7 @@ def create_command(workflow_name: str, install: bool, workflow_dir: str, descrip
|
|
|
145
145
|
# Get the repository root
|
|
146
146
|
try:
|
|
147
147
|
repo_root = get_repo_root()
|
|
148
|
-
except
|
|
148
|
+
except PackageError:
|
|
149
149
|
repo_root = None
|
|
150
150
|
|
|
151
151
|
# Get the absolute path for the output directory
|
|
@@ -234,7 +234,7 @@ def create_command(workflow_name: str, install: bool, workflow_dir: str, descrip
|
|
|
234
234
|
@click.argument('workflow_name')
|
|
235
235
|
def reinstall_command(workflow_name):
|
|
236
236
|
"""
|
|
237
|
-
Reinstall
|
|
237
|
+
Reinstall a NAT workflow to update dependencies and code changes.
|
|
238
238
|
|
|
239
239
|
Args:
|
|
240
240
|
workflow_name (str): The name of the workflow to reinstall.
|
|
@@ -270,7 +270,7 @@ def reinstall_command(workflow_name):
|
|
|
270
270
|
@click.argument('workflow_name')
|
|
271
271
|
def delete_command(workflow_name: str):
|
|
272
272
|
"""
|
|
273
|
-
Delete
|
|
273
|
+
Delete a NAT workflow and uninstall its package.
|
|
274
274
|
|
|
275
275
|
Args:
|
|
276
276
|
workflow_name (str): The name of the workflow to delete.
|
|
@@ -311,3 +311,7 @@ def delete_command(workflow_name: str):
|
|
|
311
311
|
except Exception as e:
|
|
312
312
|
logger.exception("An error occurred while deleting the workflow: %s", e, exc_info=True)
|
|
313
313
|
click.echo(f"An error occurred while deleting the workflow: {e}")
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
# Compatibility aliases with previous releases
|
|
317
|
+
AIQPackageError = PackageError
|
{aiq → nat}/cli/entrypoint.py
RENAMED
|
@@ -65,12 +65,12 @@ def get_version():
|
|
|
65
65
|
from importlib.metadata import version
|
|
66
66
|
try:
|
|
67
67
|
# Use the distro name to get the version
|
|
68
|
-
return version("
|
|
68
|
+
return version("nvidia-nat")
|
|
69
69
|
except PackageNotFoundError:
|
|
70
70
|
return "unknown"
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
@click.group(name="
|
|
73
|
+
@click.group(name="nat", chain=False, invoke_without_command=True, no_args_is_help=True)
|
|
74
74
|
@click.version_option(version=get_version())
|
|
75
75
|
@click.option('--log-level',
|
|
76
76
|
type=click.Choice(LOG_LEVELS.keys(), case_sensitive=False),
|
|
@@ -78,20 +78,20 @@ def get_version():
|
|
|
78
78
|
help='Set the logging level')
|
|
79
79
|
@click.pass_context
|
|
80
80
|
def cli(ctx: click.Context, log_level: str):
|
|
81
|
-
"""Main entrypoint for the
|
|
81
|
+
"""Main entrypoint for the NAT CLI"""
|
|
82
82
|
|
|
83
83
|
ctx_dict = ctx.ensure_object(dict)
|
|
84
84
|
|
|
85
85
|
# Setup logging
|
|
86
86
|
numeric_level = setup_logging(log_level)
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
nat_logger = logging.getLogger("nat")
|
|
89
|
+
nat_logger.setLevel(numeric_level)
|
|
90
90
|
|
|
91
91
|
logger = logging.getLogger(__package__)
|
|
92
92
|
|
|
93
93
|
# Set the parent logger for all of the llm examples to use morpheus so we can take advantage of configure_logging
|
|
94
|
-
logger.parent =
|
|
94
|
+
logger.parent = nat_logger
|
|
95
95
|
logger.setLevel(numeric_level)
|
|
96
96
|
|
|
97
97
|
ctx_dict["start_time"] = time.time()
|
{aiq → nat}/cli/main.py
RENAMED
|
@@ -35,9 +35,22 @@ def run_cli():
|
|
|
35
35
|
if (parent_dir not in sys.path):
|
|
36
36
|
sys.path.append(parent_dir)
|
|
37
37
|
|
|
38
|
-
from
|
|
38
|
+
from nat.cli.entrypoint import cli
|
|
39
39
|
|
|
40
|
-
cli(obj={}, auto_envvar_prefix='
|
|
40
|
+
cli(obj={}, auto_envvar_prefix='NAT', show_default=True, prog_name="nat")
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def run_cli_aiq_compat():
|
|
44
|
+
"Entrypoint for the `aiq` compatibility command"
|
|
45
|
+
import warnings
|
|
46
|
+
|
|
47
|
+
# Warn with a UserWarning since DeprecationWarnings are not shown by default
|
|
48
|
+
warnings.warn(
|
|
49
|
+
"The 'aiq' command is deprecated and will be removed in a future release. "
|
|
50
|
+
"Please use the 'nat' command instead.",
|
|
51
|
+
UserWarning,
|
|
52
|
+
stacklevel=2)
|
|
53
|
+
run_cli()
|
|
41
54
|
|
|
42
55
|
|
|
43
56
|
if __name__ == '__main__':
|
|
@@ -15,56 +15,56 @@
|
|
|
15
15
|
|
|
16
16
|
from contextlib import asynccontextmanager
|
|
17
17
|
|
|
18
|
-
from
|
|
19
|
-
from
|
|
20
|
-
from
|
|
21
|
-
from
|
|
22
|
-
from
|
|
23
|
-
from
|
|
24
|
-
from
|
|
25
|
-
from
|
|
26
|
-
from
|
|
27
|
-
from
|
|
28
|
-
from
|
|
29
|
-
from
|
|
30
|
-
from
|
|
31
|
-
from
|
|
32
|
-
from
|
|
33
|
-
from
|
|
34
|
-
from
|
|
35
|
-
from
|
|
36
|
-
from
|
|
37
|
-
from
|
|
38
|
-
from
|
|
39
|
-
from
|
|
40
|
-
from
|
|
41
|
-
from
|
|
42
|
-
from
|
|
43
|
-
from
|
|
44
|
-
from
|
|
45
|
-
from
|
|
46
|
-
from
|
|
47
|
-
from
|
|
48
|
-
from
|
|
49
|
-
from
|
|
50
|
-
from
|
|
51
|
-
from
|
|
52
|
-
from
|
|
53
|
-
from
|
|
54
|
-
from
|
|
55
|
-
from
|
|
56
|
-
from
|
|
57
|
-
from
|
|
58
|
-
from
|
|
59
|
-
from
|
|
60
|
-
from
|
|
61
|
-
from
|
|
62
|
-
from
|
|
63
|
-
from
|
|
64
|
-
from
|
|
65
|
-
from
|
|
66
|
-
from
|
|
67
|
-
from
|
|
18
|
+
from nat.builder.framework_enum import LLMFrameworkEnum
|
|
19
|
+
from nat.cli.type_registry import AuthProviderBuildCallableT
|
|
20
|
+
from nat.cli.type_registry import AuthProviderRegisteredCallableT
|
|
21
|
+
from nat.cli.type_registry import EmbedderClientBuildCallableT
|
|
22
|
+
from nat.cli.type_registry import EmbedderClientRegisteredCallableT
|
|
23
|
+
from nat.cli.type_registry import EmbedderProviderBuildCallableT
|
|
24
|
+
from nat.cli.type_registry import EmbedderProviderRegisteredCallableT
|
|
25
|
+
from nat.cli.type_registry import EvaluatorBuildCallableT
|
|
26
|
+
from nat.cli.type_registry import EvaluatorRegisteredCallableT
|
|
27
|
+
from nat.cli.type_registry import FrontEndBuildCallableT
|
|
28
|
+
from nat.cli.type_registry import FrontEndRegisteredCallableT
|
|
29
|
+
from nat.cli.type_registry import FunctionBuildCallableT
|
|
30
|
+
from nat.cli.type_registry import FunctionRegisteredCallableT
|
|
31
|
+
from nat.cli.type_registry import LLMClientBuildCallableT
|
|
32
|
+
from nat.cli.type_registry import LLMClientRegisteredCallableT
|
|
33
|
+
from nat.cli.type_registry import LLMProviderBuildCallableT
|
|
34
|
+
from nat.cli.type_registry import LoggingMethodBuildCallableT
|
|
35
|
+
from nat.cli.type_registry import LoggingMethodConfigT
|
|
36
|
+
from nat.cli.type_registry import LoggingMethodRegisteredCallableT
|
|
37
|
+
from nat.cli.type_registry import MemoryBuildCallableT
|
|
38
|
+
from nat.cli.type_registry import MemoryRegisteredCallableT
|
|
39
|
+
from nat.cli.type_registry import ObjectStoreBuildCallableT
|
|
40
|
+
from nat.cli.type_registry import ObjectStoreRegisteredCallableT
|
|
41
|
+
from nat.cli.type_registry import RegisteredLoggingMethod
|
|
42
|
+
from nat.cli.type_registry import RegisteredTelemetryExporter
|
|
43
|
+
from nat.cli.type_registry import RegisteredToolWrapper
|
|
44
|
+
from nat.cli.type_registry import RegistryHandlerBuildCallableT
|
|
45
|
+
from nat.cli.type_registry import RegistryHandlerRegisteredCallableT
|
|
46
|
+
from nat.cli.type_registry import RetrieverClientBuildCallableT
|
|
47
|
+
from nat.cli.type_registry import RetrieverClientRegisteredCallableT
|
|
48
|
+
from nat.cli.type_registry import RetrieverProviderBuildCallableT
|
|
49
|
+
from nat.cli.type_registry import RetrieverProviderRegisteredCallableT
|
|
50
|
+
from nat.cli.type_registry import TeleExporterRegisteredCallableT
|
|
51
|
+
from nat.cli.type_registry import TelemetryExporterBuildCallableT
|
|
52
|
+
from nat.cli.type_registry import TelemetryExporterConfigT
|
|
53
|
+
from nat.cli.type_registry import ToolWrapperBuildCallableT
|
|
54
|
+
from nat.cli.type_registry import TTCStrategyBuildCallableT
|
|
55
|
+
from nat.cli.type_registry import TTCStrategyRegisterCallableT
|
|
56
|
+
from nat.data_models.authentication import AuthProviderBaseConfigT
|
|
57
|
+
from nat.data_models.component import ComponentEnum
|
|
58
|
+
from nat.data_models.discovery_metadata import DiscoveryMetadata
|
|
59
|
+
from nat.data_models.embedder import EmbedderBaseConfigT
|
|
60
|
+
from nat.data_models.evaluator import EvaluatorBaseConfigT
|
|
61
|
+
from nat.data_models.front_end import FrontEndConfigT
|
|
62
|
+
from nat.data_models.function import FunctionConfigT
|
|
63
|
+
from nat.data_models.llm import LLMBaseConfigT
|
|
64
|
+
from nat.data_models.memory import MemoryBaseConfigT
|
|
65
|
+
from nat.data_models.object_store import ObjectStoreBaseConfigT
|
|
66
|
+
from nat.data_models.registry_handler import RegistryHandlerBaseConfigT
|
|
67
|
+
from nat.data_models.retriever import RetrieverBaseConfigT
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
def register_telemetry_exporter(config_type: type[TelemetryExporterConfigT]):
|
|
@@ -80,7 +80,7 @@ def register_telemetry_exporter(config_type: type[TelemetryExporterConfigT]):
|
|
|
80
80
|
context_manager_fn = asynccontextmanager(fn)
|
|
81
81
|
|
|
82
82
|
discovery_metadata = DiscoveryMetadata.from_config_type(config_type=config_type,
|
|
83
|
-
component_type=
|
|
83
|
+
component_type=ComponentEnum.TRACING)
|
|
84
84
|
|
|
85
85
|
GlobalTypeRegistry.get().register_telemetry_exporter(
|
|
86
86
|
RegisteredTelemetryExporter(full_type=config_type.full_type,
|
|
@@ -103,7 +103,7 @@ def register_logging_method(config_type: type[LoggingMethodConfigT]):
|
|
|
103
103
|
context_manager_fn = asynccontextmanager(fn)
|
|
104
104
|
|
|
105
105
|
discovery_metadata = DiscoveryMetadata.from_config_type(config_type=config_type,
|
|
106
|
-
component_type=
|
|
106
|
+
component_type=ComponentEnum.LOGGING)
|
|
107
107
|
|
|
108
108
|
GlobalTypeRegistry.get().register_logging_method(
|
|
109
109
|
RegisteredLoggingMethod(full_type=config_type.full_type,
|
|
@@ -129,7 +129,7 @@ def register_front_end(config_type: type[FrontEndConfigT]):
|
|
|
129
129
|
context_manager_fn = asynccontextmanager(fn)
|
|
130
130
|
|
|
131
131
|
discovery_metadata = DiscoveryMetadata.from_config_type(config_type=config_type,
|
|
132
|
-
component_type=
|
|
132
|
+
component_type=ComponentEnum.FRONT_END)
|
|
133
133
|
|
|
134
134
|
GlobalTypeRegistry.get().register_front_end(
|
|
135
135
|
RegisteredFrontEndInfo(full_type=config_type.full_type,
|
|
@@ -161,7 +161,7 @@ def register_function(config_type: type[FunctionConfigT],
|
|
|
161
161
|
framework_wrappers_list = list(framework_wrappers)
|
|
162
162
|
|
|
163
163
|
discovery_metadata = DiscoveryMetadata.from_config_type(config_type=config_type,
|
|
164
|
-
component_type=
|
|
164
|
+
component_type=ComponentEnum.FUNCTION)
|
|
165
165
|
|
|
166
166
|
GlobalTypeRegistry.get().register_function(
|
|
167
167
|
RegisteredFunctionInfo(
|
|
@@ -187,7 +187,7 @@ def register_llm_provider(config_type: type[LLMBaseConfigT]):
|
|
|
187
187
|
context_manager_fn = asynccontextmanager(fn)
|
|
188
188
|
|
|
189
189
|
discovery_metadata = DiscoveryMetadata.from_config_type(config_type=config_type,
|
|
190
|
-
component_type=
|
|
190
|
+
component_type=ComponentEnum.LLM_PROVIDER)
|
|
191
191
|
|
|
192
192
|
GlobalTypeRegistry.get().register_llm_provider(
|
|
193
193
|
RegisteredLLMProviderInfo(full_type=config_type.full_type,
|
|
@@ -211,7 +211,7 @@ def register_auth_provider(config_type: type[AuthProviderBaseConfigT]):
|
|
|
211
211
|
context_manager_fn = asynccontextmanager(fn)
|
|
212
212
|
|
|
213
213
|
discovery_metadata = DiscoveryMetadata.from_config_type(config_type=config_type,
|
|
214
|
-
component_type=
|
|
214
|
+
component_type=ComponentEnum.AUTHENTICATION_PROVIDER)
|
|
215
215
|
|
|
216
216
|
GlobalTypeRegistry.get().register_auth_provider(
|
|
217
217
|
RegisteredAuthProviderInfo(full_type=config_type.full_type,
|
|
@@ -235,8 +235,8 @@ def register_llm_client(config_type: type[LLMBaseConfigT], wrapper_type: LLMFram
|
|
|
235
235
|
|
|
236
236
|
discovery_metadata = DiscoveryMetadata.from_provider_framework_map(config_type=config_type,
|
|
237
237
|
wrapper_type=wrapper_type,
|
|
238
|
-
provider_type=
|
|
239
|
-
component_type=
|
|
238
|
+
provider_type=ComponentEnum.LLM_PROVIDER,
|
|
239
|
+
component_type=ComponentEnum.LLM_CLIENT)
|
|
240
240
|
GlobalTypeRegistry.get().register_llm_client(
|
|
241
241
|
RegisteredLLMClientInfo(full_type=config_type.full_type,
|
|
242
242
|
config_type=config_type,
|
|
@@ -260,7 +260,7 @@ def register_embedder_provider(config_type: type[EmbedderBaseConfigT]):
|
|
|
260
260
|
context_manager_fn = asynccontextmanager(fn)
|
|
261
261
|
|
|
262
262
|
discovery_metadata = DiscoveryMetadata.from_config_type(config_type=config_type,
|
|
263
|
-
component_type=
|
|
263
|
+
component_type=ComponentEnum.EMBEDDER_PROVIDER)
|
|
264
264
|
|
|
265
265
|
GlobalTypeRegistry.get().register_embedder_provider(
|
|
266
266
|
RegisteredEmbedderProviderInfo(full_type=config_type.full_type,
|
|
@@ -286,8 +286,8 @@ def register_embedder_client(config_type: type[EmbedderBaseConfigT], wrapper_typ
|
|
|
286
286
|
discovery_metadata = DiscoveryMetadata.from_provider_framework_map(
|
|
287
287
|
config_type=config_type,
|
|
288
288
|
wrapper_type=wrapper_type,
|
|
289
|
-
provider_type=
|
|
290
|
-
component_type=
|
|
289
|
+
provider_type=ComponentEnum.EMBEDDER_PROVIDER,
|
|
290
|
+
component_type=ComponentEnum.EMBEDDER_CLIENT)
|
|
291
291
|
|
|
292
292
|
GlobalTypeRegistry.get().register_embedder_client(
|
|
293
293
|
RegisteredEmbedderClientInfo(full_type=config_type.full_type,
|
|
@@ -311,7 +311,7 @@ def register_evaluator(config_type: type[EvaluatorBaseConfigT]):
|
|
|
311
311
|
context_manager_fn = asynccontextmanager(fn)
|
|
312
312
|
|
|
313
313
|
discovery_metadata = DiscoveryMetadata.from_config_type(config_type=config_type,
|
|
314
|
-
component_type=
|
|
314
|
+
component_type=ComponentEnum.EVALUATOR)
|
|
315
315
|
|
|
316
316
|
GlobalTypeRegistry.get().register_evaluator(
|
|
317
317
|
RegisteredEvaluatorInfo(full_type=config_type.full_type,
|
|
@@ -334,7 +334,7 @@ def register_memory(config_type: type[MemoryBaseConfigT]):
|
|
|
334
334
|
context_manager_fn = asynccontextmanager(fn)
|
|
335
335
|
|
|
336
336
|
discovery_metadata = DiscoveryMetadata.from_config_type(config_type=config_type,
|
|
337
|
-
component_type=
|
|
337
|
+
component_type=ComponentEnum.MEMORY)
|
|
338
338
|
|
|
339
339
|
GlobalTypeRegistry.get().register_memory(
|
|
340
340
|
RegisteredMemoryInfo(full_type=config_type.full_type,
|
|
@@ -358,7 +358,7 @@ def register_object_store(config_type: type[ObjectStoreBaseConfigT]):
|
|
|
358
358
|
context_manager_fn = asynccontextmanager(fn)
|
|
359
359
|
|
|
360
360
|
discovery_metadata = DiscoveryMetadata.from_config_type(config_type=config_type,
|
|
361
|
-
component_type=
|
|
361
|
+
component_type=ComponentEnum.OBJECT_STORE)
|
|
362
362
|
|
|
363
363
|
GlobalTypeRegistry.get().register_object_store(
|
|
364
364
|
RegisteredObjectStoreInfo(full_type=config_type.full_type,
|
|
@@ -382,7 +382,7 @@ def register_ttc_strategy(config_type: type[TTCStrategyRegisterCallableT]):
|
|
|
382
382
|
context_manager_fn = asynccontextmanager(fn)
|
|
383
383
|
|
|
384
384
|
discovery_metadata = DiscoveryMetadata.from_config_type(config_type=config_type,
|
|
385
|
-
component_type=
|
|
385
|
+
component_type=ComponentEnum.TTC_STRATEGY)
|
|
386
386
|
|
|
387
387
|
GlobalTypeRegistry.get().register_ttc_strategy(
|
|
388
388
|
RegisteredTTCStrategyInfo(full_type=config_type.full_type,
|
|
@@ -406,7 +406,7 @@ def register_retriever_provider(config_type: type[RetrieverBaseConfigT]):
|
|
|
406
406
|
context_manager_fn = asynccontextmanager(fn)
|
|
407
407
|
|
|
408
408
|
discovery_metadata = DiscoveryMetadata.from_config_type(config_type=config_type,
|
|
409
|
-
component_type=
|
|
409
|
+
component_type=ComponentEnum.RETRIEVER_PROVIDER)
|
|
410
410
|
|
|
411
411
|
GlobalTypeRegistry.get().register_retriever_provider(
|
|
412
412
|
RegisteredRetrieverProviderInfo(full_type=config_type.full_type,
|
|
@@ -432,8 +432,8 @@ def register_retriever_client(config_type: type[RetrieverBaseConfigT], wrapper_t
|
|
|
432
432
|
discovery_metadata = DiscoveryMetadata.from_provider_framework_map(
|
|
433
433
|
config_type=config_type,
|
|
434
434
|
wrapper_type=wrapper_type,
|
|
435
|
-
provider_type=
|
|
436
|
-
component_type=
|
|
435
|
+
provider_type=ComponentEnum.RETRIEVER_PROVIDER,
|
|
436
|
+
component_type=ComponentEnum.RETRIEVER_CLIENT,
|
|
437
437
|
)
|
|
438
438
|
|
|
439
439
|
GlobalTypeRegistry.get().register_retriever_client(
|
|
@@ -455,7 +455,7 @@ def register_tool_wrapper(wrapper_type: LLMFrameworkEnum | str):
|
|
|
455
455
|
|
|
456
456
|
discovery_metadata = DiscoveryMetadata.from_fn_wrapper(fn=fn,
|
|
457
457
|
wrapper_type=wrapper_type,
|
|
458
|
-
component_type=
|
|
458
|
+
component_type=ComponentEnum.TOOL_WRAPPER)
|
|
459
459
|
GlobalTypeRegistry.get().register_tool_wrapper(
|
|
460
460
|
RegisteredToolWrapper(llm_framework=wrapper_type, build_fn=fn, discovery_metadata=discovery_metadata))
|
|
461
461
|
|
|
@@ -475,7 +475,7 @@ def register_registry_handler(config_type: type[RegistryHandlerBaseConfigT]):
|
|
|
475
475
|
context_manager_fn = asynccontextmanager(fn)
|
|
476
476
|
|
|
477
477
|
discovery_metadata = DiscoveryMetadata.from_config_type(config_type=config_type,
|
|
478
|
-
component_type=
|
|
478
|
+
component_type=ComponentEnum.REGISTRY_HANDLER)
|
|
479
479
|
|
|
480
480
|
GlobalTypeRegistry.get().register_registry_handler(
|
|
481
481
|
RegisteredRegistryHandlerInfo(full_type=config_type.full_type,
|