databricks-agentbricks 0.9.0__tar.gz → 0.10.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.
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/PKG-INFO +62 -12
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/README.md +61 -11
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/pyproject.toml +1 -1
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/app.py +3 -3
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/deploy.py +75 -9
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/dev.py +6 -1
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/doctor.py +2 -3
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/permissions.py +8 -1
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/pipeline.py +16 -3
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/telemetry.py +170 -34
- databricks_agentbricks-0.10.0/src/databricks_agentbricks/clients/agent_details_client.py +86 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/clients/apps_client.py +19 -3
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/clients/conversation_store_client.py +22 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/clients/databricks_cli.py +70 -13
- databricks_agentbricks-0.10.0/src/databricks_agentbricks/clients/output_tail.py +124 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/clients/terminal_relay.py +5 -1
- databricks_agentbricks-0.10.0/src/databricks_agentbricks/clients/workspace_identity.py +37 -0
- databricks_agentbricks-0.10.0/src/databricks_agentbricks/diagnostics.py +58 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/errors.py +44 -5
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/presentation/deploy.py +95 -47
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/presentation/group.py +112 -4
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/projects/agent_project.py +64 -13
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/projects/app_manifest.py +48 -23
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/deploy_service.py +42 -21
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/deployment/deploy_state.py +31 -7
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/deployment/provisioners.py +35 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/dev_service.py +83 -71
- databricks_agentbricks-0.10.0/src/databricks_agentbricks/telemetry/__init__.py +1 -0
- databricks_agentbricks-0.10.0/src/databricks_agentbricks/telemetry/scrub.py +104 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-bricks-workflow/SKILL.md +3 -2
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-bricks-workflow/references/deployment.md +16 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/pyproject.toml +1 -1
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/pyproject.toml +1 -1
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-langgraph/agent/agent.py +2 -1
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-langgraph/pyproject.toml +1 -1
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-openai/pyproject.toml +1 -1
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/_api_client.py +5 -1
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/langgraph/messages.py +19 -1
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/.gitignore +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/NOTICE +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/agent_hint.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/__main__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/auth.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/endpoint.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/experimental.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/init.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/mcp.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/memory.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/models.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/prompts.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/sandbox.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/sessions.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/tools.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/tracing.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/clients/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/clients/api_client_provider.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/clients/app_probe.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/clients/apps_user_auth_client.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/clients/legacy_runtime_store.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/clients/local_ports.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/clients/local_tracing_client.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/clients/managed_runtime_store.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/clients/mlflow_trace_client.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/clients/tracing_client.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/model_upgrade.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/presentation/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/presentation/dev.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/presentation/endpoint.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/presentation/help.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/presentation/loadtest.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/presentation/permissions.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/presentation/render.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/presentation/reporter.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/presentation/theme.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/presentation/tracing.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/projects/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/projects/config.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/projects/resolver.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/projects/types.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/py.typed +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/reporting.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/deployment/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/deployment/app_provisioner.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/deployment/config.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/deployment/model_binding_provisioner.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/deployment/names.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/deployment/tool_access.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/deployment/tool_access_provisioner.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/endpoint_service.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/invoke/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/invoke/auth.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/invoke/request.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/invoke/transport.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/loadtest/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/loadtest/_locustfile.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/loadtest/plan.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/loadtest/request.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/loadtest/runner.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/loadtest/streaming.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/tracing/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/tracing/targets.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/services/tracing_service.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/skills.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-bricks-migrate/SKILL.md +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-bricks-workflow/references/state-and-tools.md +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/.env.example +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/.gitignore +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/AGENTKIT_CONTRACT.md +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/AGENTS.md +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/CLAUDE.md +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/README.md +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/agent/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/agent/agent.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/agent/mcps.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/agent/tools/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/agent/tools/sample_tool.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/agent/tools/send_message.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/app.yaml +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/runtime/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/runtime/adapter.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/runtime/main.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/tests/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/tests/test_agent.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/tests/test_runtime.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-langgraph/tests/test_workspace.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/.env.example +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/.gitignore +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/AGENTKIT_CONTRACT.md +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/AGENTS.md +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/CLAUDE.md +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/README.md +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/agent/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/agent/agent.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/agent/checkpoints.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/agent/mcps.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/agent/tools/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/agent/tools/sample_tool.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/agent/tools/send_message.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/app.yaml +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/runtime/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/runtime/adapter.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/runtime/main.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/tests/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/tests/test_agent.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/tests/test_checkpoints.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/tests/test_runtime.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/agent-openai/tests/test_workspace.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-langgraph/.env.example +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-langgraph/.gitignore +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-langgraph/README.md +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-langgraph/agent/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-langgraph/app.yaml +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-langgraph/runtime/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-langgraph/runtime/main.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-langgraph/tests/test_runtime.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-openai/.env.example +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-openai/.gitignore +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-openai/README.md +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-openai/agent/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-openai/agent/agent.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-openai/app.yaml +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-openai/runtime/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-openai/runtime/main.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/custom-agent-openai/tests/test_runtime.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/sandbox_mcp.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/sandbox_mcp_langgraph.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-langgraph/CHAT_APP.md +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-langgraph/runtime/main.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-langgraph/runtime/ui.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-langgraph/tests/test_demo_ui.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-langgraph/ui/agentbricks-mark.png +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-langgraph/ui/app.js +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-langgraph/ui/index.html +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-langgraph/ui/markdown-it-15.0.2.min.js +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-langgraph/ui/styles.css +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-openai/CHAT_APP.md +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-openai/runtime/main.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-openai/runtime/ui.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-openai/tests/test_demo_ui.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-openai/ui/agentbricks-mark.png +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-openai/ui/app.js +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-openai/ui/index.html +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-openai/ui/markdown-it-15.0.2.min.js +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/templates/ui/agent-openai/ui/styles.css +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/_pagination.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/_permissions.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/client.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/langgraph/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/langgraph/genie.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/langgraph/history.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/langgraph/mcp.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/langgraph/memory.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/langgraph/responses.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/langgraph/session_store.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/memory_store.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/model_upgrades/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/model_upgrades/optimization.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/models.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/openai/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/openai/genie.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/openai/history.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/openai/mcp.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/openai/memory.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/openai/models.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/openai/sessions.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/py.typed +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/ARCHITECTURE.md +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/README.md +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/app.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/auth.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/cors.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/durability/__init__.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/durability/execution.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/durability/heartbeat.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/durability/lakebase_runtime_store.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/durability/recovery.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/durability/store.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/errors.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/execution.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/genie.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/mcp_auth.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/model_services.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/prompt_registry.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/runtime.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/session_store_client.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/store.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/tool_manifest.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/tracing.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/types.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/runtime/workspace.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/session_store.py +0 -0
- {databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentkit/timefmt.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: databricks-agentbricks
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.10.0
|
|
4
4
|
Summary: Agent Bricks CLI and AgentKit SDK for custom agents on Databricks
|
|
5
5
|
Author-email: Databricks <agent-feedback@databricks.com>
|
|
6
6
|
License-File: NOTICE
|
|
@@ -164,11 +164,32 @@ credentials.
|
|
|
164
164
|
|
|
165
165
|
If Databricks SDK default authentication is already configured, you can skip `agentbricks login`.
|
|
166
166
|
You can also pass the global `--profile/-p` option before an individual command, for example
|
|
167
|
-
`agentbricks --profile <profile> tools list`. Use `--output json` for
|
|
167
|
+
`agentbricks --profile <profile> tools list`. Use `--output json` (before or after the command) for
|
|
168
|
+
scripting.
|
|
168
169
|
|
|
169
170
|
The CLI sends best effort command usage telemetry after leaf commands. Its log records the static
|
|
170
171
|
command path, package version, operating system, duration, and process outcome (exit code and, for
|
|
171
|
-
nonzero exits, a bounded error category).
|
|
172
|
+
nonzero exits, a bounded error category). Failures can also include up to 4096 UTF-8 bytes of
|
|
173
|
+
error text in `failure_message`. Error text includes exception messages and fully captured
|
|
174
|
+
failed subprocess output, with recognized credentials, paths, and email addresses scrubbed.
|
|
175
|
+
Combined failure text over 65,536 characters is also omitted before scrubbing.
|
|
176
|
+
Credential assignments, auth headers, credential options, and encoded text cause the remaining
|
|
177
|
+
captured text to be omitted; preceding diagnostic text is retained. This avoids parsing arbitrary
|
|
178
|
+
JSON, YAML, or Python values. Recognizable standalone tokens and private keys are also masked.
|
|
179
|
+
This follows the Asset Bundles minimization pattern and is best effort; other customer content
|
|
180
|
+
may remain in service responses or application output.
|
|
181
|
+
It is labeled `DATA_LABEL_USER_COMMANDS_RESPONSE`, excluded from centralized logfood, and retained
|
|
182
|
+
regionally only where customer logging and encryption policies permit. Error text is omitted for
|
|
183
|
+
parser errors and interruptions. Collection requires Legal approval and schema deployment.
|
|
184
|
+
For `dev`, failure text can include complete child output up to 3072 bytes per captured stream.
|
|
185
|
+
Once a stream exceeds that limit, all its retained text is permanently discarded and replaced with
|
|
186
|
+
`[REDACTED]`, including later plain error messages, because partial output may have lost credential
|
|
187
|
+
context. Short complete output is scrubbed before upload, including private keys. Displayed child
|
|
188
|
+
output is unchanged. With one output stream redirected, the terminal stream is inherited unchanged
|
|
189
|
+
and only the redirected stream is retained. When both streams point to the same regular file, both
|
|
190
|
+
are inherited without capture to preserve their original offsets and redirection behavior.
|
|
191
|
+
Startup milestones remain internal; a killed process or unavailable upload can still leave no event.
|
|
192
|
+
Parameter entries include explicitly supplied options
|
|
172
193
|
and parsed Click defaults with supported typed values, automatically across all commands and
|
|
173
194
|
parent groups. Declare defaults in Click options so the shared emitter can read the resolved
|
|
174
195
|
values; fallbacks applied only inside command callbacks are not visible to Click. Omitted free-form
|
|
@@ -178,9 +199,8 @@ choices contribute an `AGENTBRICKS_CLI_`-prefixed value. Click boolean and numer
|
|
|
178
199
|
contribute their typed values; explicitly supplied non-finite floats and integers outside the log
|
|
179
200
|
schema's 64-bit range remain presence-only, while unsupported defaults are omitted. Hidden and
|
|
180
201
|
deprecated options follow the same policy, and repeated
|
|
181
|
-
options contribute one parameter entry per supplied value, up to 64 entries.
|
|
182
|
-
raw command arguments, paths, IDs,
|
|
183
|
-
messages are omitted. Set
|
|
202
|
+
options contribute one parameter entry per supplied value, up to 64 entries. Parameter telemetry
|
|
203
|
+
omits positional arguments, raw command arguments, paths, IDs, and arbitrary free-form values. Set
|
|
184
204
|
`AGENTBRICKS_DISABLE_TELEMETRY=1` to disable these uploads.
|
|
185
205
|
|
|
186
206
|
Telemetry runs only when a leaf command is invoked, whether its callback succeeds or fails. Help
|
|
@@ -193,6 +213,25 @@ thread, returning sooner if the worker finishes. This is not a delivery guarante
|
|
|
193
213
|
uploads can be lost when the process exits after the allowance expires. Missing credentials or a
|
|
194
214
|
failed upload never change the command result.
|
|
195
215
|
|
|
216
|
+
Deploy and `deployments wait` telemetry includes a random invocation UUID, whether a gated
|
|
217
|
+
agent-details link was printed, the observed deployment state, and whether the process is an
|
|
218
|
+
internal background child. Details links carry the invocation UUID so browser arrivals can be
|
|
219
|
+
joined to the command that printed them. The UUID contains no agent name or authentication data.
|
|
220
|
+
Rollout outcomes are recorded independently of link availability, including failed rollouts;
|
|
221
|
+
preparation failures leave the deployment outcome unspecified.
|
|
222
|
+
`AGENTBRICKS_DISABLE_TELEMETRY=1` also removes these attribution parameters while keeping the link.
|
|
223
|
+
`deployments get` and `deployments list` also attach a per-command UUID to details links.
|
|
224
|
+
All rows from one list share one UUID and one command event; their deployment outcome stays
|
|
225
|
+
unspecified because these commands only read state. List links count as emitted only when JSON
|
|
226
|
+
output or terminal hyperlink rendering preserves their targets. Plain redirected output and
|
|
227
|
+
terminal modes that strip hyperlink targets keep `details_link_emitted=false`; use `--output json`
|
|
228
|
+
to capture the URLs. Group arrivals by the joined event's
|
|
229
|
+
`command_path` to distinguish deploy, wait, get, and list. Count distinct invocation IDs, rather
|
|
230
|
+
than list rows or repeated page loads, for command conversion percentages.
|
|
231
|
+
A wait command has its own invocation ID; it is not another deploy. Exclude background children
|
|
232
|
+
from user-invoked command counts. Link arrivals measure browser opens, including copied links,
|
|
233
|
+
not terminal mouse clicks or proof that the deployer and viewer are the same person.
|
|
234
|
+
|
|
196
235
|
## Quickstart
|
|
197
236
|
|
|
198
237
|
The shortest path from a blank directory to a running and deployed agent:
|
|
@@ -228,6 +267,18 @@ The app's compute starts first and boots while the other resources are provision
|
|
|
228
267
|
deploy stops partway, the app it created is kept: re-run `agentbricks deploy` to resume, or remove
|
|
229
268
|
it with `agentbricks deployments delete agent-bricks-my-agent`.
|
|
230
269
|
|
|
270
|
+
When the workspace has both the Agent Memory Sessions beta and the new Agents UI enabled,
|
|
271
|
+
deploy output also includes an **Agent details** link to the workspace management page. This
|
|
272
|
+
applies to first deploys, redeploys, `--no-wait`, and `deployments wait`.
|
|
273
|
+
`deployments get` shows the same link alongside the app URL; `deployments list` links agent
|
|
274
|
+
names to their details pages and keeps a separate **Open app** link. JSON output adds
|
|
275
|
+
`details_url` when available and retains `url` for the deployed agent. The optional flag lookup
|
|
276
|
+
waits at most two seconds per command, including lists; unavailable or disabled flags omit the
|
|
277
|
+
link without affecting the command.
|
|
278
|
+
When following a local deploy record, `deployments wait` also requires its recorded workspace
|
|
279
|
+
host and ID to match the selected profile. Older records or records without a workspace ID omit
|
|
280
|
+
the management link; the recorded deployment status and invocation URL are still available.
|
|
281
|
+
|
|
231
282
|
### Deploying from a coding agent
|
|
232
283
|
|
|
233
284
|
A first deploy takes ~3 min (mostly starting app compute); redeploys are faster. Either run
|
|
@@ -715,8 +766,8 @@ agentbricks memory stores permissions revoke memory-stores/<id> \
|
|
|
715
766
|
|
|
716
767
|
Session stores accept their configured name or `session-stores/<name>`. Memory stores accept an ID
|
|
717
768
|
or `memory-stores/<id>`; permission Get also accepts the display-name lookup supported by store Get
|
|
718
|
-
and rejects ambiguous matches. The global `--profile`
|
|
719
|
-
`
|
|
769
|
+
and rejects ambiguous matches. The global `--profile` option goes before `sessions` or `memory`;
|
|
770
|
+
`--output json` goes before or after the command. List follows the existing CLI pagination convention: one JSON/piped page
|
|
720
771
|
with `next_page_token`, interactive text pages, or every page with `--all`.
|
|
721
772
|
|
|
722
773
|
Get always returns the authenticated caller's effective permission, including
|
|
@@ -1128,7 +1179,7 @@ requests. By default, each App user's `X-Routing-Key` matches its generated user
|
|
|
1128
1179
|
|
|
1129
1180
|
The final summary includes counts, throughput including drain, successful-only and all-completed
|
|
1130
1181
|
latency percentiles, answer-text TTFT, token usage, coverage, incomplete attempts, and generator CPU
|
|
1131
|
-
warnings. With `--output json
|
|
1182
|
+
warnings. With `--output json`, stdout contains one Agent Bricks summary object;
|
|
1132
1183
|
progress stays on stderr. This is the same object saved as `summary.json`.
|
|
1133
1184
|
Locust's rounded histogram buckets are used for percentiles; all-completed timings include failures.
|
|
1134
1185
|
These bounded tests measure the selected workload and do not establish sustainable capacity or answer quality.
|
|
@@ -1514,9 +1565,8 @@ agentbricks tools remove genie_agent
|
|
|
1514
1565
|
to `user`; choose `--auth app` deliberately for App service-principal execution. Existing manifests
|
|
1515
1566
|
without `auth` preserve App/default identity. Both add commands and `remove` accept `--source PATH`
|
|
1516
1567
|
to select a project instead of the current directory. Discovery needs no project; read that
|
|
1517
|
-
project's `agent.toml` to inspect configured bindings. For scripted output,
|
|
1518
|
-
|
|
1519
|
-
`agentbricks -o json tools add genie-one --source ./my-agent`. Adding a binding is offline: it updates
|
|
1568
|
+
project's `agent.toml` to inspect configured bindings. For scripted output, add `-o json`, as in
|
|
1569
|
+
`agentbricks tools add genie-one --source ./my-agent -o json`. Adding a binding is offline: it updates
|
|
1520
1570
|
`agent.toml` without contacting Genie or checking permissions. The corresponding sources are:
|
|
1521
1571
|
|
|
1522
1572
|
```toml
|
|
@@ -121,11 +121,32 @@ credentials.
|
|
|
121
121
|
|
|
122
122
|
If Databricks SDK default authentication is already configured, you can skip `agentbricks login`.
|
|
123
123
|
You can also pass the global `--profile/-p` option before an individual command, for example
|
|
124
|
-
`agentbricks --profile <profile> tools list`. Use `--output json` for
|
|
124
|
+
`agentbricks --profile <profile> tools list`. Use `--output json` (before or after the command) for
|
|
125
|
+
scripting.
|
|
125
126
|
|
|
126
127
|
The CLI sends best effort command usage telemetry after leaf commands. Its log records the static
|
|
127
128
|
command path, package version, operating system, duration, and process outcome (exit code and, for
|
|
128
|
-
nonzero exits, a bounded error category).
|
|
129
|
+
nonzero exits, a bounded error category). Failures can also include up to 4096 UTF-8 bytes of
|
|
130
|
+
error text in `failure_message`. Error text includes exception messages and fully captured
|
|
131
|
+
failed subprocess output, with recognized credentials, paths, and email addresses scrubbed.
|
|
132
|
+
Combined failure text over 65,536 characters is also omitted before scrubbing.
|
|
133
|
+
Credential assignments, auth headers, credential options, and encoded text cause the remaining
|
|
134
|
+
captured text to be omitted; preceding diagnostic text is retained. This avoids parsing arbitrary
|
|
135
|
+
JSON, YAML, or Python values. Recognizable standalone tokens and private keys are also masked.
|
|
136
|
+
This follows the Asset Bundles minimization pattern and is best effort; other customer content
|
|
137
|
+
may remain in service responses or application output.
|
|
138
|
+
It is labeled `DATA_LABEL_USER_COMMANDS_RESPONSE`, excluded from centralized logfood, and retained
|
|
139
|
+
regionally only where customer logging and encryption policies permit. Error text is omitted for
|
|
140
|
+
parser errors and interruptions. Collection requires Legal approval and schema deployment.
|
|
141
|
+
For `dev`, failure text can include complete child output up to 3072 bytes per captured stream.
|
|
142
|
+
Once a stream exceeds that limit, all its retained text is permanently discarded and replaced with
|
|
143
|
+
`[REDACTED]`, including later plain error messages, because partial output may have lost credential
|
|
144
|
+
context. Short complete output is scrubbed before upload, including private keys. Displayed child
|
|
145
|
+
output is unchanged. With one output stream redirected, the terminal stream is inherited unchanged
|
|
146
|
+
and only the redirected stream is retained. When both streams point to the same regular file, both
|
|
147
|
+
are inherited without capture to preserve their original offsets and redirection behavior.
|
|
148
|
+
Startup milestones remain internal; a killed process or unavailable upload can still leave no event.
|
|
149
|
+
Parameter entries include explicitly supplied options
|
|
129
150
|
and parsed Click defaults with supported typed values, automatically across all commands and
|
|
130
151
|
parent groups. Declare defaults in Click options so the shared emitter can read the resolved
|
|
131
152
|
values; fallbacks applied only inside command callbacks are not visible to Click. Omitted free-form
|
|
@@ -135,9 +156,8 @@ choices contribute an `AGENTBRICKS_CLI_`-prefixed value. Click boolean and numer
|
|
|
135
156
|
contribute their typed values; explicitly supplied non-finite floats and integers outside the log
|
|
136
157
|
schema's 64-bit range remain presence-only, while unsupported defaults are omitted. Hidden and
|
|
137
158
|
deprecated options follow the same policy, and repeated
|
|
138
|
-
options contribute one parameter entry per supplied value, up to 64 entries.
|
|
139
|
-
raw command arguments, paths, IDs,
|
|
140
|
-
messages are omitted. Set
|
|
159
|
+
options contribute one parameter entry per supplied value, up to 64 entries. Parameter telemetry
|
|
160
|
+
omits positional arguments, raw command arguments, paths, IDs, and arbitrary free-form values. Set
|
|
141
161
|
`AGENTBRICKS_DISABLE_TELEMETRY=1` to disable these uploads.
|
|
142
162
|
|
|
143
163
|
Telemetry runs only when a leaf command is invoked, whether its callback succeeds or fails. Help
|
|
@@ -150,6 +170,25 @@ thread, returning sooner if the worker finishes. This is not a delivery guarante
|
|
|
150
170
|
uploads can be lost when the process exits after the allowance expires. Missing credentials or a
|
|
151
171
|
failed upload never change the command result.
|
|
152
172
|
|
|
173
|
+
Deploy and `deployments wait` telemetry includes a random invocation UUID, whether a gated
|
|
174
|
+
agent-details link was printed, the observed deployment state, and whether the process is an
|
|
175
|
+
internal background child. Details links carry the invocation UUID so browser arrivals can be
|
|
176
|
+
joined to the command that printed them. The UUID contains no agent name or authentication data.
|
|
177
|
+
Rollout outcomes are recorded independently of link availability, including failed rollouts;
|
|
178
|
+
preparation failures leave the deployment outcome unspecified.
|
|
179
|
+
`AGENTBRICKS_DISABLE_TELEMETRY=1` also removes these attribution parameters while keeping the link.
|
|
180
|
+
`deployments get` and `deployments list` also attach a per-command UUID to details links.
|
|
181
|
+
All rows from one list share one UUID and one command event; their deployment outcome stays
|
|
182
|
+
unspecified because these commands only read state. List links count as emitted only when JSON
|
|
183
|
+
output or terminal hyperlink rendering preserves their targets. Plain redirected output and
|
|
184
|
+
terminal modes that strip hyperlink targets keep `details_link_emitted=false`; use `--output json`
|
|
185
|
+
to capture the URLs. Group arrivals by the joined event's
|
|
186
|
+
`command_path` to distinguish deploy, wait, get, and list. Count distinct invocation IDs, rather
|
|
187
|
+
than list rows or repeated page loads, for command conversion percentages.
|
|
188
|
+
A wait command has its own invocation ID; it is not another deploy. Exclude background children
|
|
189
|
+
from user-invoked command counts. Link arrivals measure browser opens, including copied links,
|
|
190
|
+
not terminal mouse clicks or proof that the deployer and viewer are the same person.
|
|
191
|
+
|
|
153
192
|
## Quickstart
|
|
154
193
|
|
|
155
194
|
The shortest path from a blank directory to a running and deployed agent:
|
|
@@ -185,6 +224,18 @@ The app's compute starts first and boots while the other resources are provision
|
|
|
185
224
|
deploy stops partway, the app it created is kept: re-run `agentbricks deploy` to resume, or remove
|
|
186
225
|
it with `agentbricks deployments delete agent-bricks-my-agent`.
|
|
187
226
|
|
|
227
|
+
When the workspace has both the Agent Memory Sessions beta and the new Agents UI enabled,
|
|
228
|
+
deploy output also includes an **Agent details** link to the workspace management page. This
|
|
229
|
+
applies to first deploys, redeploys, `--no-wait`, and `deployments wait`.
|
|
230
|
+
`deployments get` shows the same link alongside the app URL; `deployments list` links agent
|
|
231
|
+
names to their details pages and keeps a separate **Open app** link. JSON output adds
|
|
232
|
+
`details_url` when available and retains `url` for the deployed agent. The optional flag lookup
|
|
233
|
+
waits at most two seconds per command, including lists; unavailable or disabled flags omit the
|
|
234
|
+
link without affecting the command.
|
|
235
|
+
When following a local deploy record, `deployments wait` also requires its recorded workspace
|
|
236
|
+
host and ID to match the selected profile. Older records or records without a workspace ID omit
|
|
237
|
+
the management link; the recorded deployment status and invocation URL are still available.
|
|
238
|
+
|
|
188
239
|
### Deploying from a coding agent
|
|
189
240
|
|
|
190
241
|
A first deploy takes ~3 min (mostly starting app compute); redeploys are faster. Either run
|
|
@@ -672,8 +723,8 @@ agentbricks memory stores permissions revoke memory-stores/<id> \
|
|
|
672
723
|
|
|
673
724
|
Session stores accept their configured name or `session-stores/<name>`. Memory stores accept an ID
|
|
674
725
|
or `memory-stores/<id>`; permission Get also accepts the display-name lookup supported by store Get
|
|
675
|
-
and rejects ambiguous matches. The global `--profile`
|
|
676
|
-
`
|
|
726
|
+
and rejects ambiguous matches. The global `--profile` option goes before `sessions` or `memory`;
|
|
727
|
+
`--output json` goes before or after the command. List follows the existing CLI pagination convention: one JSON/piped page
|
|
677
728
|
with `next_page_token`, interactive text pages, or every page with `--all`.
|
|
678
729
|
|
|
679
730
|
Get always returns the authenticated caller's effective permission, including
|
|
@@ -1085,7 +1136,7 @@ requests. By default, each App user's `X-Routing-Key` matches its generated user
|
|
|
1085
1136
|
|
|
1086
1137
|
The final summary includes counts, throughput including drain, successful-only and all-completed
|
|
1087
1138
|
latency percentiles, answer-text TTFT, token usage, coverage, incomplete attempts, and generator CPU
|
|
1088
|
-
warnings. With `--output json
|
|
1139
|
+
warnings. With `--output json`, stdout contains one Agent Bricks summary object;
|
|
1089
1140
|
progress stays on stderr. This is the same object saved as `summary.json`.
|
|
1090
1141
|
Locust's rounded histogram buckets are used for percentiles; all-completed timings include failures.
|
|
1091
1142
|
These bounded tests measure the selected workload and do not establish sustainable capacity or answer quality.
|
|
@@ -1471,9 +1522,8 @@ agentbricks tools remove genie_agent
|
|
|
1471
1522
|
to `user`; choose `--auth app` deliberately for App service-principal execution. Existing manifests
|
|
1472
1523
|
without `auth` preserve App/default identity. Both add commands and `remove` accept `--source PATH`
|
|
1473
1524
|
to select a project instead of the current directory. Discovery needs no project; read that
|
|
1474
|
-
project's `agent.toml` to inspect configured bindings. For scripted output,
|
|
1475
|
-
|
|
1476
|
-
`agentbricks -o json tools add genie-one --source ./my-agent`. Adding a binding is offline: it updates
|
|
1525
|
+
project's `agent.toml` to inspect configured bindings. For scripted output, add `-o json`, as in
|
|
1526
|
+
`agentbricks tools add genie-one --source ./my-agent -o json`. Adding a binding is offline: it updates
|
|
1477
1527
|
`agent.toml` without contacting Genie or checking permissions. The corresponding sources are:
|
|
1478
1528
|
|
|
1479
1529
|
```toml
|
{databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/app.py
RENAMED
|
@@ -123,9 +123,9 @@ def _emit_trailing_spacer() -> None:
|
|
|
123
123
|
try:
|
|
124
124
|
# Suppress under `-o json` even on a (pseudo-)TTY — a machine may be parsing stdout under
|
|
125
125
|
# `docker run -t` / `script` / a CI PTY, where isatty() alone would wrongly allow the
|
|
126
|
-
# spacer. `errors.
|
|
127
|
-
# way by render.py), so it's still available here after the Click context is torn down.
|
|
128
|
-
if errors.
|
|
126
|
+
# spacer. `errors.error_output_mode()` is a process global (set by the root group, read the
|
|
127
|
+
# same way by render.py), so it's still available here after the Click context is torn down.
|
|
128
|
+
if errors.error_output_mode() == "json" or not sys.stdout.isatty():
|
|
129
129
|
return
|
|
130
130
|
click.echo()
|
|
131
131
|
except Exception:
|
|
@@ -28,6 +28,8 @@ from typing import Any, Callable, Optional
|
|
|
28
28
|
|
|
29
29
|
import click
|
|
30
30
|
|
|
31
|
+
from databricks_agentbricks.cli import telemetry
|
|
32
|
+
from databricks_agentbricks.clients.agent_details_client import AgentDetailsClient
|
|
31
33
|
from databricks_agentbricks.clients.app_probe import AppProbe
|
|
32
34
|
from databricks_agentbricks.clients.apps_client import AppsClient
|
|
33
35
|
from databricks_agentbricks.clients.apps_user_auth_client import AppsUserAuthClient
|
|
@@ -86,6 +88,12 @@ from databricks_agentbricks.services.invoke.auth import WorkspaceOAuthAuthentica
|
|
|
86
88
|
# EX_TEMPFAIL from sysexits.h when the deploy is still running so the caller knows to wait again.
|
|
87
89
|
_WAIT_TIMEOUT_S = 100
|
|
88
90
|
_EX_TEMPFAIL = 75
|
|
91
|
+
_DEPLOYMENT_OUTCOMES: dict[str | None, telemetry.DeploymentOutcome] = {
|
|
92
|
+
None: "DEPLOYMENT_OUTCOME_UNSPECIFIED",
|
|
93
|
+
deploy_state.RUNNING: "DEPLOYMENT_OUTCOME_RUNNING",
|
|
94
|
+
deploy_state.SUCCEEDED: "DEPLOYMENT_OUTCOME_SUCCEEDED",
|
|
95
|
+
deploy_state.FAILED: "DEPLOYMENT_OUTCOME_FAILED",
|
|
96
|
+
}
|
|
89
97
|
|
|
90
98
|
|
|
91
99
|
def build_deploy_service(obj, *, background: bool = False) -> DeployService:
|
|
@@ -200,8 +208,7 @@ def _ignore_hangup() -> None:
|
|
|
200
208
|
"--source",
|
|
201
209
|
default=".",
|
|
202
210
|
type=click.Path(exists=True, file_okay=False),
|
|
203
|
-
help="
|
|
204
|
-
"current directory.",
|
|
211
|
+
help="Project directory (with app.yaml). Defaults to the current directory.",
|
|
205
212
|
)
|
|
206
213
|
@click.option(
|
|
207
214
|
"--pip-index-url",
|
|
@@ -294,6 +301,7 @@ def deploy(
|
|
|
294
301
|
agent answers requests. From a coding agent or script with a short command timeout, use
|
|
295
302
|
--no-wait and then `agentbricks deployments wait`.
|
|
296
303
|
"""
|
|
304
|
+
telemetry.begin_deployment(background_child=background_child)
|
|
297
305
|
if allowed_origin and clear_allowed_origins:
|
|
298
306
|
raise click.UsageError("Use --allowed-origin or --clear-allowed-origins, not both.")
|
|
299
307
|
request = DeployRequest(
|
|
@@ -312,17 +320,39 @@ def deploy(
|
|
|
312
320
|
# Fail fast in the foreground on anything quick to check; the child repeats these checks.
|
|
313
321
|
prepared = service.prepare(request)
|
|
314
322
|
service.check_auth()
|
|
323
|
+
workspace = service.workspace_identity()
|
|
315
324
|
source_dir = pathlib.Path(source)
|
|
316
325
|
log = deploy_state.log_path(source_dir, prepared.name)
|
|
317
326
|
pid = spawn_background_deploy(_background_argv(obj, request), log=log)
|
|
318
327
|
state_file = deploy_state.record_background_start(
|
|
319
|
-
source_dir, prepared.name, pid=pid, now=time.time()
|
|
328
|
+
source_dir, prepared.name, pid=pid, now=time.time(), workspace=workspace
|
|
329
|
+
)
|
|
330
|
+
telemetry.set_deployment_outcome("DEPLOYMENT_OUTCOME_RUNNING")
|
|
331
|
+
present_background_started(
|
|
332
|
+
prepared.name,
|
|
333
|
+
log=log,
|
|
334
|
+
state_file=state_file,
|
|
335
|
+
output=obj.output,
|
|
336
|
+
details_url=telemetry.deployment_details_url(
|
|
337
|
+
AgentDetailsClient(obj.api_client_provider).get_url(prepared.name),
|
|
338
|
+
),
|
|
320
339
|
)
|
|
321
|
-
present_background_started(prepared.name, log=log, state_file=state_file, output=obj.output)
|
|
322
340
|
return
|
|
323
341
|
started = time.monotonic()
|
|
324
|
-
|
|
325
|
-
|
|
342
|
+
try:
|
|
343
|
+
result = service.deploy(request)
|
|
344
|
+
finally:
|
|
345
|
+
telemetry.set_deployment_outcome(
|
|
346
|
+
_DEPLOYMENT_OUTCOMES.get(service.rollout_outcome, "DEPLOYMENT_OUTCOME_UNSPECIFIED")
|
|
347
|
+
)
|
|
348
|
+
present_deploy_result(
|
|
349
|
+
result,
|
|
350
|
+
output=obj.output,
|
|
351
|
+
elapsed_s=time.monotonic() - started,
|
|
352
|
+
details_url=telemetry.deployment_details_url(
|
|
353
|
+
AgentDetailsClient(obj.api_client_provider).get_url(result.deployment),
|
|
354
|
+
),
|
|
355
|
+
)
|
|
326
356
|
|
|
327
357
|
|
|
328
358
|
# --- agentbricks deployments <lifecycle> ------------------------------------------
|
|
@@ -337,7 +367,21 @@ def deployments() -> None:
|
|
|
337
367
|
@click.pass_obj
|
|
338
368
|
def deployments_list(obj) -> None:
|
|
339
369
|
"""List Agent Bricks deployments (apps named `agent-bricks-*`)."""
|
|
340
|
-
|
|
370
|
+
telemetry.begin_deployment()
|
|
371
|
+
items = build_deploy_service(obj).list_deployments()
|
|
372
|
+
names = [item["name"] for item in items if item.get("name")]
|
|
373
|
+
details_urls = AgentDetailsClient(obj.api_client_provider).get_urls(names)
|
|
374
|
+
console = render.console()
|
|
375
|
+
# Rich omits hyperlink targets without ANSI styles or with legacy Windows rendering.
|
|
376
|
+
if obj.output == "json" or (console.color_system is not None and not console.legacy_windows):
|
|
377
|
+
details_urls = {
|
|
378
|
+
name: telemetry.deployment_details_url(url) or url for name, url in details_urls.items()
|
|
379
|
+
}
|
|
380
|
+
present_deployments_list(
|
|
381
|
+
items,
|
|
382
|
+
output=obj.output,
|
|
383
|
+
details_urls=details_urls,
|
|
384
|
+
)
|
|
341
385
|
|
|
342
386
|
|
|
343
387
|
@deployments.command("get")
|
|
@@ -345,7 +389,16 @@ def deployments_list(obj) -> None:
|
|
|
345
389
|
@click.pass_obj
|
|
346
390
|
def deployments_get(obj, name) -> None:
|
|
347
391
|
"""Get an agent deployment's details."""
|
|
348
|
-
|
|
392
|
+
telemetry.begin_deployment()
|
|
393
|
+
data = build_deploy_service(obj).get(name)
|
|
394
|
+
present_deployment_detail(
|
|
395
|
+
data,
|
|
396
|
+
name,
|
|
397
|
+
output=obj.output,
|
|
398
|
+
details_url=telemetry.deployment_details_url(
|
|
399
|
+
AgentDetailsClient(obj.api_client_provider).get_url(name)
|
|
400
|
+
),
|
|
401
|
+
)
|
|
349
402
|
|
|
350
403
|
|
|
351
404
|
@deployments.command("wait")
|
|
@@ -377,8 +430,21 @@ def deployments_wait(ctx: click.Context, name, timeout_s, source) -> None:
|
|
|
377
430
|
75 still deploying at the timeout (run the same command again).
|
|
378
431
|
"""
|
|
379
432
|
obj = ctx.obj
|
|
433
|
+
telemetry.begin_deployment()
|
|
380
434
|
result = build_deploy_service(obj).wait(name, pathlib.Path(source), timeout_s)
|
|
381
|
-
|
|
435
|
+
telemetry.set_deployment_outcome(_DEPLOYMENT_OUTCOMES[result.status])
|
|
436
|
+
present_wait_result(
|
|
437
|
+
result,
|
|
438
|
+
output=obj.output,
|
|
439
|
+
details_url=telemetry.deployment_details_url(
|
|
440
|
+
AgentDetailsClient(obj.api_client_provider).get_url(
|
|
441
|
+
result.deployment, expected_workspace=result.workspace
|
|
442
|
+
)
|
|
443
|
+
if result.status != deploy_state.FAILED
|
|
444
|
+
and (not result.from_local_state or result.workspace is not None)
|
|
445
|
+
else None,
|
|
446
|
+
),
|
|
447
|
+
)
|
|
382
448
|
if result.status == deploy_state.FAILED:
|
|
383
449
|
ctx.exit(1)
|
|
384
450
|
if result.status == deploy_state.RUNNING:
|
{databricks_agentbricks-0.9.0 → databricks_agentbricks-0.10.0}/src/databricks_agentbricks/cli/dev.py
RENAMED
|
@@ -17,6 +17,7 @@ from databricks_agentbricks.clients.apps_client import AppsClient
|
|
|
17
17
|
from databricks_agentbricks.clients.databricks_cli import _databricks
|
|
18
18
|
from databricks_agentbricks.clients.local_ports import free_port, port_in_use
|
|
19
19
|
from databricks_agentbricks.clients.local_tracing_client import LocalTracingClient
|
|
20
|
+
from databricks_agentbricks.diagnostics import CommandDiagnostics
|
|
20
21
|
from databricks_agentbricks.errors import AgentCliError
|
|
21
22
|
from databricks_agentbricks.presentation import render
|
|
22
23
|
from databricks_agentbricks.presentation.dev import (
|
|
@@ -38,12 +39,16 @@ from databricks_agentbricks.services.dev_service import (
|
|
|
38
39
|
|
|
39
40
|
def build_dev_service(obj) -> DevService:
|
|
40
41
|
"""Compose the local workflow without opening a workspace API client."""
|
|
42
|
+
diagnostics = getattr(obj, "diagnostics", None) or CommandDiagnostics()
|
|
43
|
+
obj.diagnostics = diagnostics
|
|
44
|
+
diagnostics.app_listened = False
|
|
41
45
|
return DevService(
|
|
42
46
|
project_resolver=ProjectResolver(),
|
|
43
|
-
apps_client=AppsClient(obj.profile, runner=_databricks),
|
|
47
|
+
apps_client=AppsClient(obj.profile, runner=_databricks, diagnostics=diagnostics),
|
|
44
48
|
local_tracing=LocalTracingClient(),
|
|
45
49
|
port_in_use=port_in_use,
|
|
46
50
|
free_port=free_port,
|
|
51
|
+
diagnostics=diagnostics,
|
|
47
52
|
)
|
|
48
53
|
|
|
49
54
|
|
|
@@ -25,6 +25,7 @@ from packaging.utils import canonicalize_name
|
|
|
25
25
|
|
|
26
26
|
from databricks_agentbricks.errors import AgentCliError
|
|
27
27
|
from databricks_agentbricks.projects.agent_project import AgentProject
|
|
28
|
+
from databricks_agentbricks.projects.app_manifest import is_placeholder_command
|
|
28
29
|
from databricks_agentbricks.services.deployment.names import (
|
|
29
30
|
_MAX_DEPLOYMENT_NAME_LEN,
|
|
30
31
|
_prefixed_name,
|
|
@@ -447,9 +448,7 @@ def _app_command(root: pathlib.Path) -> DoctorCheck:
|
|
|
447
448
|
return _check(
|
|
448
449
|
"app_command", False, f"{path} must declare a non-empty command string or list."
|
|
449
450
|
)
|
|
450
|
-
|
|
451
|
-
normalized = rendered.casefold()
|
|
452
|
-
if "replace_with" in normalized or "# todo: set your run command" in normalized:
|
|
451
|
+
if is_placeholder_command(command):
|
|
453
452
|
return _check("app_command", False, f"{path} still contains a placeholder command.")
|
|
454
453
|
return _check("app_command", True, "app.yaml declares a non-empty startup command.")
|
|
455
454
|
|
|
@@ -14,6 +14,13 @@ from databricks_agentbricks.presentation.render import field
|
|
|
14
14
|
from databricks_agentkit._permissions import MAX_PERMISSION_PAGE_SIZE
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
class _UpperChoice(click.Choice):
|
|
18
|
+
"""Case-insensitive choice that shows values uppercase in help and errors, like the API."""
|
|
19
|
+
|
|
20
|
+
def normalize_choice(self, choice: object, ctx: click.Context | None) -> str:
|
|
21
|
+
return super().normalize_choice(choice, ctx).upper()
|
|
22
|
+
|
|
23
|
+
|
|
17
24
|
def _principal(user: str | None, service_principal: str | None) -> tuple[str, str]:
|
|
18
25
|
if (user is None) == (service_principal is None):
|
|
19
26
|
raise click.UsageError("Specify exactly one of --user or --service-principal.")
|
|
@@ -140,7 +147,7 @@ def store_permissions(kind: str, *, resolve_get: Callable | None = None) -> clic
|
|
|
140
147
|
@click.option(
|
|
141
148
|
"--permission",
|
|
142
149
|
required=True,
|
|
143
|
-
type=
|
|
150
|
+
type=_UpperChoice(["READ", "WRITE"], case_sensitive=False),
|
|
144
151
|
help="Access to grant. WRITE includes READ; READ preserves an existing WRITE grant.",
|
|
145
152
|
)
|
|
146
153
|
@click.pass_obj
|
|
@@ -14,6 +14,11 @@ from databricks_agentbricks.presentation.render import field
|
|
|
14
14
|
from databricks_agentkit import timefmt
|
|
15
15
|
from databricks_agentkit._api_client import MEMORY_PIPELINE_TRIGGERS
|
|
16
16
|
|
|
17
|
+
_TRIGGER_HELP = (
|
|
18
|
+
"How runs start: only when you start one, also automatically about every 24 hours, "
|
|
19
|
+
"or always-on (distill as sessions update, plus daily maintenance)."
|
|
20
|
+
)
|
|
21
|
+
|
|
17
22
|
|
|
18
23
|
def _resolve_instructions(ctx, param, value):
|
|
19
24
|
if value is None or not value.startswith("@"):
|
|
@@ -57,6 +62,7 @@ def _render_detail(pipeline: dict) -> None:
|
|
|
57
62
|
|
|
58
63
|
|
|
59
64
|
def _render_run(run: dict) -> None:
|
|
65
|
+
stats = field(run, "stats") or {}
|
|
60
66
|
render.detail(
|
|
61
67
|
"Dreamer Run",
|
|
62
68
|
field(run, "name") or "—",
|
|
@@ -64,6 +70,10 @@ def _render_run(run: dict) -> None:
|
|
|
64
70
|
"Resource name": field(run, "name"),
|
|
65
71
|
"State": field(run, "state"),
|
|
66
72
|
"Error": field(run, "error"),
|
|
73
|
+
"Actors succeeded": field(stats, "actors_succeeded"),
|
|
74
|
+
"Actors skipped": field(stats, "actors_skipped"),
|
|
75
|
+
"Actors failed": field(stats, "actors_failed"),
|
|
76
|
+
"Entries written": field(stats, "entries_written"),
|
|
67
77
|
"Created": timefmt.absolute(field(run, "create_time")),
|
|
68
78
|
"Finished": timefmt.absolute(field(run, "end_time")),
|
|
69
79
|
},
|
|
@@ -91,7 +101,7 @@ def pipeline() -> None:
|
|
|
91
101
|
type=click.Choice(list(MEMORY_PIPELINE_TRIGGERS)),
|
|
92
102
|
default="manual",
|
|
93
103
|
show_default=True,
|
|
94
|
-
help=
|
|
104
|
+
help=_TRIGGER_HELP,
|
|
95
105
|
)
|
|
96
106
|
@click.pass_obj
|
|
97
107
|
def create(obj, memory_store, session_store, model, display_name, instructions, trigger) -> None:
|
|
@@ -184,7 +194,7 @@ def get(obj, name) -> None:
|
|
|
184
194
|
"--trigger",
|
|
185
195
|
type=click.Choice(list(MEMORY_PIPELINE_TRIGGERS)),
|
|
186
196
|
default=None,
|
|
187
|
-
help=
|
|
197
|
+
help=_TRIGGER_HELP,
|
|
188
198
|
)
|
|
189
199
|
@click.pass_obj
|
|
190
200
|
def update(obj, name, display_name, instructions, model, trigger) -> None:
|
|
@@ -212,6 +222,9 @@ def _set_trigger(obj, name: str, trigger: str) -> None:
|
|
|
212
222
|
if current_trigger == MEMORY_PIPELINE_TRIGGERS[trigger]:
|
|
213
223
|
state = "paused" if trigger == "manual" else "resumed"
|
|
214
224
|
raise AgentCliError(f"Memory pipeline '{name}' is already {state}.")
|
|
225
|
+
if trigger == "scheduled" and current_trigger == MEMORY_PIPELINE_TRIGGERS["always-on"]:
|
|
226
|
+
# Always-on already runs automatically; resuming would downgrade it to daily runs.
|
|
227
|
+
raise AgentCliError(f"Memory pipeline '{name}' is already resumed (always-on).")
|
|
215
228
|
data = client.update_memory_pipeline(name, trigger=trigger)
|
|
216
229
|
if obj.output == "json":
|
|
217
230
|
render.emit_json(data)
|
|
@@ -223,7 +236,7 @@ def _set_trigger(obj, name: str, trigger: str) -> None:
|
|
|
223
236
|
@click.argument("name")
|
|
224
237
|
@click.pass_obj
|
|
225
238
|
def pause(obj, name) -> None:
|
|
226
|
-
"""Pause scheduled runs; active runs continue and manual runs remain available."""
|
|
239
|
+
"""Pause scheduled or always-on runs; active runs continue and manual runs remain available."""
|
|
227
240
|
_set_trigger(obj, name, "manual")
|
|
228
241
|
|
|
229
242
|
|