beamlit 0.0.31rc37__tar.gz → 0.0.31rc39__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/PKG-INFO +1 -1
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/pyproject.toml +1 -1
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/agents/chain.py +5 -5
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/agents/decorator.py +4 -3
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/service_accounts/create_workspace_service_account.py +3 -1
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/service_accounts/delete_workspace_service_account.py +3 -1
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/service_accounts/get_workspace_service_accounts.py +3 -1
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/service_accounts/update_workspace_service_account.py +3 -1
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/authentication/authentication.py +8 -4
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/common/logger.py +1 -1
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/common/settings.py +10 -6
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/deploy/deploy.py +18 -8
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/deploy/format.py +2 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/functions/decorator.py +2 -1
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/functions/mcp/mcp.py +3 -2
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/functions/remote/remote.py +3 -2
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/__init__.py +9 -3
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/resource_environment_metrics.py +3 -1
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/run.py +1 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/serve/app.py +10 -5
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/integrationtest/.beamlit/agents/agent-custom/agent.yaml +2 -2
- beamlit-0.0.31rc39/src/integrationtest/.beamlit/agents/agent-custom/destination.txt +1 -0
- beamlit-0.0.31rc39/src/integrationtest/.beamlit/functions/helloworld/Dockerfile +23 -0
- beamlit-0.0.31rc39/src/integrationtest/.beamlit/functions/helloworld/destination.txt +1 -0
- beamlit-0.0.31rc39/src/integrationtest/.beamlit/functions/helloworld/function.yaml +19 -0
- beamlit-0.0.31rc37/src/integrationtest/.beamlit/agents/agent-custom/destination.txt +0 -1
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/.gitignore +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/README.md +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/beamlit.yaml +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/agents/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/agents/chat.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/agents/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/agents/create_agent.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/agents/create_agent_release.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/agents/delete_agent.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/agents/delete_agent_history.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/agents/get_agent.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/agents/get_agent_environment_logs.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/agents/get_agent_history.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/agents/get_agent_metrics.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/agents/get_agent_trace_ids.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/agents/list_agent_history.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/agents/list_agents.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/agents/put_agent_history.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/agents/update_agent.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/configurations/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/configurations/get_configuration.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/default/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/default/get_trace.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/default/get_trace_ids.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/default/get_trace_logs.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/environments/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/environments/create_environment.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/environments/delete_environment.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/environments/get_environment.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/environments/get_environment_metrics.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/environments/list_environments.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/environments/update_environment.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/functions/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/functions/create_function.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/functions/create_function_release.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/functions/delete_function.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/functions/get_function.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/functions/get_function_environment_logs.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/functions/get_function_metrics.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/functions/get_function_trace_ids.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/functions/list_functions.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/functions/update_function.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/history/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/history/get_agents_history.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/history/list_agents_history.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/integrations/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/integrations/create_integration_connection.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/integrations/delete_integration_connection.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/integrations/get_integration.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/integrations/get_integration_connection.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/integrations/get_integration_connection_model.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/integrations/get_integration_model.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/integrations/list_integration_connection_models.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/integrations/list_integration_connections.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/integrations/list_integration_models.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/integrations/update_integration_connection.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/invitations/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/invitations/list_all_pending_invitations.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/locations/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/locations/list_locations.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/metrics/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/metrics/get_metrics.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/model_providers/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/model_providers/create_model_provider.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/model_providers/delete_model_provider.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/model_providers/get_model_provider.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/model_providers/list_model_providers.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/model_providers/update_model_provider.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/models/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/models/create_model.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/models/delete_model.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/models/get_model.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/models/get_model_environment_logs.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/models/get_model_metrics.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/models/get_model_trace_ids.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/models/list_models.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/models/release_model.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/models/update_model.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/policies/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/policies/create_policy.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/policies/delete_policy.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/policies/get_policy.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/policies/list_policies.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/policies/update_policy.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/privateclusters/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/privateclusters/create_private_cluster.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/privateclusters/delete_private_cluster.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/privateclusters/get_private_cluster.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/privateclusters/get_private_cluster_health.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/privateclusters/list_private_clusters.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/privateclusters/update_private_cluster.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/privateclusters/update_private_cluster_health.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/service_accounts/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/service_accounts/create_api_key_for_service_account.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/service_accounts/delete_api_key_for_service_account.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/service_accounts/list_api_keys_for_service_account.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/store/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/store/get_store_agent.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/store/get_store_function.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/store/list_store_agents.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/store/list_store_functions.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/workspaces/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/workspaces/accept_workspace_invitation.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/workspaces/create_worspace.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/workspaces/decline_workspace_invitation.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/workspaces/delete_workspace.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/workspaces/get_workspace.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/workspaces/invite_workspace_user.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/workspaces/leave_workspace.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/workspaces/list_workspace_users.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/workspaces/list_workspaces.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/workspaces/remove_workspace_user.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/workspaces/update_workspace.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/workspaces/update_workspace_user_role.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/authentication/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/authentication/apikey.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/authentication/clientcredentials.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/authentication/credentials.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/authentication/device_mode.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/client.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/common/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/common/error.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/common/generate.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/common/instrumentation.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/common/secrets.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/common/utils.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/deploy/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/deploy/parser.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/errors.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/functions/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/functions/github/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/functions/github/github.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/functions/github/kit/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/functions/github/kit/pull_request.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/functions/math/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/functions/math/math.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/functions/search/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/functions/search/search.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/acl.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/agent.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/agent_chain.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/agent_history.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/agent_history_event.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/agent_metadata.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/agent_release.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/agent_spec.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/api_key.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/configuration.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/continent.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/core_spec.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/core_spec_configurations.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/core_status.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/country.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/create_api_key_for_service_account_body.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/create_workspace_service_account_body.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/create_workspace_service_account_response_200.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/delete_workspace_service_account_response_200.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/environment.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/environment_metadata.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/environment_metrics.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/environment_spec.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/flavor.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/function.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/function_kit.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/function_metadata.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/function_release.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/function_spec.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/get_trace_ids_response_200.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/get_trace_logs_response_200.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/get_trace_response_200.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/get_workspace_service_accounts_response_200_item.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/increase_and_rate_metric.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/integration_config.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/integration_connection.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/integration_connection_config.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/integration_connection_secret.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/integration_connection_spec.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/integration_model.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/invite_workspace_user_body.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/location_response.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/metadata.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/metadata_labels.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/metric.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/metrics.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/model.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/model_metadata.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/model_private_cluster.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/model_provider.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/model_release.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/model_spec.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/owner_fields.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/pending_invitation.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/pending_invitation_accept.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/pending_invitation_render.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/pending_invitation_render_invited_by.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/pending_invitation_render_workspace.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/pending_invitation_workspace_details.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/pod_template_spec.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/policy.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/policy_location.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/policy_spec.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/private_cluster.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/private_location.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/provider_config.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/qps.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/resource_deployment_metrics.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/resource_deployment_metrics_inference_per_second_per_region.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/resource_environment_metrics_inference_per_region.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/resource_environment_metrics_inference_per_second_per_region.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/resource_environment_metrics_query_per_region_per_code.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/resource_environment_metrics_query_per_second_per_region_per_code.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/resource_log.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/resource_metrics.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/runtime.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/runtime_readiness_probe.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/runtime_resources.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/serverless_config.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/spec_configuration.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/store_agent.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/store_agent_labels.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/store_configuration.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/store_configuration_option.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/store_function.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/store_function_kit.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/store_function_labels.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/store_function_parameter.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/time_fields.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/trace_ids_response.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/update_workspace_service_account_body.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/update_workspace_service_account_response_200.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/update_workspace_user_role_body.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/websocket_channel.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/workspace.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/workspace_labels.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/workspace_user.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/py.typed +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/serve/middlewares/__init__.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/serve/middlewares/accesslog.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/serve/middlewares/processtime.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/types.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/integrationtest/.beamlit/agents/agent-custom/Dockerfile +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/integrationtest/.beamlit/functions/helloworld_2/Dockerfile +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/integrationtest/.beamlit/functions/helloworld_2/destination.txt +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/integrationtest/.beamlit/functions/helloworld_2/function.yaml +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/integrationtest/agent.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/integrationtest/beamlit.yaml +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/integrationtest/functions/helloworld.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/integrationtest/main.py +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/integrationtest/pyproject.toml +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/integrationtest/uv.lock +0 -0
- {beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/uv.lock +0 -0
@@ -1,17 +1,17 @@
|
|
1
1
|
import asyncio
|
2
|
-
from dataclasses import dataclass
|
3
2
|
import warnings
|
4
|
-
from
|
3
|
+
from dataclasses import dataclass
|
4
|
+
from typing import Callable
|
5
5
|
|
6
6
|
import pydantic
|
7
7
|
import typing_extensions as t
|
8
|
+
from langchain_core.tools.base import BaseTool, ToolException
|
9
|
+
|
8
10
|
from beamlit.api.agents import list_agents
|
9
11
|
from beamlit.authentication.authentication import AuthenticatedClient
|
12
|
+
from beamlit.common.settings import get_settings
|
10
13
|
from beamlit.models import Agent, AgentChain
|
11
14
|
from beamlit.run import RunClient
|
12
|
-
from beamlit.common.settings import get_settings
|
13
|
-
from langchain_core.tools.base import BaseTool, ToolException
|
14
|
-
|
15
15
|
|
16
16
|
|
17
17
|
class ChainTool(BaseTool):
|
@@ -6,6 +6,10 @@ import importlib
|
|
6
6
|
import os
|
7
7
|
from logging import getLogger
|
8
8
|
|
9
|
+
from langchain_core.tools import Tool
|
10
|
+
from langgraph.checkpoint.memory import MemorySaver
|
11
|
+
from langgraph.prebuilt import create_react_agent
|
12
|
+
|
9
13
|
from beamlit.api.models import get_model
|
10
14
|
from beamlit.authentication import new_client
|
11
15
|
from beamlit.common.settings import init
|
@@ -13,9 +17,6 @@ from beamlit.errors import UnexpectedStatus
|
|
13
17
|
from beamlit.functions.mcp.mcp import MCPClient, MCPToolkit
|
14
18
|
from beamlit.functions.remote.remote import RemoteToolkit
|
15
19
|
from beamlit.models import Agent, AgentMetadata, AgentSpec
|
16
|
-
from langchain_core.tools import Tool
|
17
|
-
from langgraph.checkpoint.memory import MemorySaver
|
18
|
-
from langgraph.prebuilt import create_react_agent
|
19
20
|
|
20
21
|
from .chain import ChainToolkit
|
21
22
|
from .chat import get_chat_model
|
@@ -6,7 +6,9 @@ import httpx
|
|
6
6
|
from ... import errors
|
7
7
|
from ...client import AuthenticatedClient, Client
|
8
8
|
from ...models.create_workspace_service_account_body import CreateWorkspaceServiceAccountBody
|
9
|
-
from ...models.create_workspace_service_account_response_200 import
|
9
|
+
from ...models.create_workspace_service_account_response_200 import (
|
10
|
+
CreateWorkspaceServiceAccountResponse200,
|
11
|
+
)
|
10
12
|
from ...types import Response
|
11
13
|
|
12
14
|
|
@@ -5,7 +5,9 @@ import httpx
|
|
5
5
|
|
6
6
|
from ... import errors
|
7
7
|
from ...client import AuthenticatedClient, Client
|
8
|
-
from ...models.delete_workspace_service_account_response_200 import
|
8
|
+
from ...models.delete_workspace_service_account_response_200 import (
|
9
|
+
DeleteWorkspaceServiceAccountResponse200,
|
10
|
+
)
|
9
11
|
from ...types import Response
|
10
12
|
|
11
13
|
|
@@ -5,7 +5,9 @@ import httpx
|
|
5
5
|
|
6
6
|
from ... import errors
|
7
7
|
from ...client import AuthenticatedClient, Client
|
8
|
-
from ...models.get_workspace_service_accounts_response_200_item import
|
8
|
+
from ...models.get_workspace_service_accounts_response_200_item import (
|
9
|
+
GetWorkspaceServiceAccountsResponse200Item,
|
10
|
+
)
|
9
11
|
from ...types import Response
|
10
12
|
|
11
13
|
|
@@ -6,7 +6,9 @@ import httpx
|
|
6
6
|
from ... import errors
|
7
7
|
from ...client import AuthenticatedClient, Client
|
8
8
|
from ...models.update_workspace_service_account_body import UpdateWorkspaceServiceAccountBody
|
9
|
-
from ...models.update_workspace_service_account_response_200 import
|
9
|
+
from ...models.update_workspace_service_account_response_200 import (
|
10
|
+
UpdateWorkspaceServiceAccountResponse200,
|
11
|
+
)
|
10
12
|
from ...types import Response
|
11
13
|
|
12
14
|
|
@@ -1,15 +1,19 @@
|
|
1
|
-
import os
|
2
1
|
from dataclasses import dataclass
|
3
2
|
from typing import Dict, Generator
|
4
3
|
|
5
|
-
from beamlit.common.settings import Settings, get_settings
|
6
4
|
from httpx import Auth, Request, Response
|
7
5
|
|
6
|
+
from beamlit.common.settings import Settings, get_settings
|
7
|
+
|
8
8
|
from ..client import AuthenticatedClient
|
9
9
|
from .apikey import ApiKeyProvider
|
10
10
|
from .clientcredentials import ClientCredentials
|
11
|
-
from .credentials import (
|
12
|
-
|
11
|
+
from .credentials import (
|
12
|
+
Credentials,
|
13
|
+
current_context,
|
14
|
+
load_credentials,
|
15
|
+
load_credentials_from_settings,
|
16
|
+
)
|
13
17
|
from .device_mode import BearerToken
|
14
18
|
|
15
19
|
|
@@ -27,5 +27,5 @@ def init(log_level: str):
|
|
27
27
|
logging.getLogger("httpx").propagate = False
|
28
28
|
|
29
29
|
handler = logging.StreamHandler()
|
30
|
-
handler.setFormatter(ColoredFormatter(
|
30
|
+
handler.setFormatter(ColoredFormatter("%(levelname)s %(name)s - %(message)s"))
|
31
31
|
logging.basicConfig(level=log_level, handlers=[handler])
|
@@ -2,6 +2,16 @@ import os
|
|
2
2
|
from logging import getLogger
|
3
3
|
from typing import Tuple, Type, Union
|
4
4
|
|
5
|
+
from langchain_core.language_models.chat_models import BaseChatModel
|
6
|
+
from langgraph.graph.graph import CompiledGraph
|
7
|
+
from pydantic import Field
|
8
|
+
from pydantic_settings import (
|
9
|
+
BaseSettings,
|
10
|
+
PydanticBaseSettingsSource,
|
11
|
+
SettingsConfigDict,
|
12
|
+
YamlConfigSettingsSource,
|
13
|
+
)
|
14
|
+
|
5
15
|
from beamlit.api.agents import get_agent
|
6
16
|
from beamlit.api.functions import get_function
|
7
17
|
from beamlit.api.models import get_model
|
@@ -9,11 +19,6 @@ from beamlit.client import AuthenticatedClient
|
|
9
19
|
from beamlit.common.logger import init as init_logger
|
10
20
|
from beamlit.models import Agent, Function, Model
|
11
21
|
from beamlit.types import UNSET, Unset
|
12
|
-
from langchain_core.language_models.chat_models import BaseChatModel
|
13
|
-
from langgraph.graph.graph import CompiledGraph
|
14
|
-
from pydantic import Field
|
15
|
-
from pydantic_settings import (BaseSettings, PydanticBaseSettingsSource,
|
16
|
-
SettingsConfigDict, YamlConfigSettingsSource)
|
17
22
|
|
18
23
|
global SETTINGS
|
19
24
|
SETTINGS = None
|
@@ -99,7 +104,6 @@ def init_agent(
|
|
99
104
|
client: AuthenticatedClient,
|
100
105
|
destination: str = f"{os.getcwd()}/src/beamlit_generated.py",
|
101
106
|
):
|
102
|
-
from beamlit.api.agents import get_agent_deployment
|
103
107
|
from beamlit.common.generate import generate
|
104
108
|
|
105
109
|
logger = getLogger(__name__)
|
@@ -2,12 +2,20 @@ import ast
|
|
2
2
|
import json
|
3
3
|
import os
|
4
4
|
import sys
|
5
|
+
import uuid
|
5
6
|
from logging import getLogger
|
6
7
|
from typing import Literal
|
7
8
|
|
8
9
|
from beamlit.common.settings import Settings, get_settings, init
|
9
|
-
from beamlit.models import (
|
10
|
-
|
10
|
+
from beamlit.models import (
|
11
|
+
Agent,
|
12
|
+
AgentSpec,
|
13
|
+
EnvironmentMetadata,
|
14
|
+
Flavor,
|
15
|
+
Function,
|
16
|
+
FunctionSpec,
|
17
|
+
Runtime,
|
18
|
+
)
|
11
19
|
|
12
20
|
from .format import arg_to_dict, format_agent_chain, format_parameters
|
13
21
|
from .parser import Resource, get_description, get_parameters, get_resources
|
@@ -23,6 +31,8 @@ def get_runtime_image(type: str, name: str) -> str:
|
|
23
31
|
settings = get_settings()
|
24
32
|
registry_url = settings.registry_url.replace("https://", "").replace("http://", "")
|
25
33
|
image = f"{registry_url}/{settings.workspace}/{type}s/{name}"
|
34
|
+
# Generate a random ID to ensure unique image tags
|
35
|
+
image = f"{image}:{str(uuid.uuid4())[:8]}"
|
26
36
|
return image
|
27
37
|
|
28
38
|
|
@@ -247,29 +257,29 @@ def generate_beamlit_deployment(directory: str):
|
|
247
257
|
# write deployment file
|
248
258
|
agent_dir = os.path.join(agents_dir, agent.metadata.name)
|
249
259
|
os.makedirs(agent_dir, exist_ok=True)
|
250
|
-
with open(os.path.join(agent_dir,
|
260
|
+
with open(os.path.join(agent_dir, "agent.yaml"), "w") as f:
|
251
261
|
content = get_agent_yaml(agent, functions, settings)
|
252
262
|
f.write(content)
|
253
263
|
# write dockerfile for build
|
254
|
-
with open(os.path.join(agent_dir,
|
264
|
+
with open(os.path.join(agent_dir, "Dockerfile"), "w") as f:
|
255
265
|
content = dockerfile("agent", resource, agent)
|
256
266
|
f.write(content)
|
257
267
|
# write destination docker
|
258
|
-
with open(os.path.join(agent_dir,
|
268
|
+
with open(os.path.join(agent_dir, "destination.txt"), "w") as f:
|
259
269
|
content = agent.spec.runtime.image
|
260
270
|
f.write(content)
|
261
271
|
for resource, function in functions:
|
262
272
|
# write deployment file
|
263
273
|
function_dir = os.path.join(functions_dir, function.metadata.name)
|
264
274
|
os.makedirs(function_dir, exist_ok=True)
|
265
|
-
with open(os.path.join(function_dir,
|
275
|
+
with open(os.path.join(function_dir, "function.yaml"), "w") as f:
|
266
276
|
content = get_function_yaml(function, settings)
|
267
277
|
f.write(content)
|
268
278
|
# write dockerfile for build
|
269
|
-
with open(os.path.join(function_dir,
|
279
|
+
with open(os.path.join(function_dir, "Dockerfile"), "w") as f:
|
270
280
|
content = dockerfile("function", resource, function)
|
271
281
|
f.write(content)
|
272
282
|
# write destination docker
|
273
|
-
with open(os.path.join(function_dir,
|
283
|
+
with open(os.path.join(function_dir, "destination.txt"), "w") as f:
|
274
284
|
content = function.spec.runtime.image
|
275
285
|
f.write(content)
|
@@ -4,11 +4,12 @@ import json
|
|
4
4
|
from collections.abc import Callable
|
5
5
|
from logging import getLogger
|
6
6
|
|
7
|
+
from langchain_core.tools import create_schema_from_function
|
8
|
+
|
7
9
|
from beamlit.authentication import new_client
|
8
10
|
from beamlit.common.settings import get_settings
|
9
11
|
from beamlit.models import Function, FunctionKit
|
10
12
|
from beamlit.run import RunClient
|
11
|
-
from langchain_core.tools import create_schema_from_function
|
12
13
|
|
13
14
|
logger = getLogger(__name__)
|
14
15
|
|
@@ -7,11 +7,12 @@ import pydantic
|
|
7
7
|
import pydantic_core
|
8
8
|
import requests
|
9
9
|
import typing_extensions as t
|
10
|
-
from beamlit.authentication.authentication import AuthenticatedClient
|
11
|
-
from beamlit.common.settings import get_settings
|
12
10
|
from langchain_core.tools.base import BaseTool, BaseToolkit, ToolException
|
13
11
|
from mcp import ListToolsResult
|
14
12
|
|
13
|
+
from beamlit.authentication.authentication import AuthenticatedClient
|
14
|
+
from beamlit.common.settings import get_settings
|
15
|
+
|
15
16
|
settings = get_settings()
|
16
17
|
|
17
18
|
def create_dynamic_schema(name: str, schema: dict[str, t.Any]) -> type[pydantic.BaseModel]:
|
@@ -1,16 +1,17 @@
|
|
1
1
|
import asyncio
|
2
2
|
import warnings
|
3
3
|
from dataclasses import dataclass
|
4
|
-
from typing import Callable
|
4
|
+
from typing import Callable
|
5
5
|
|
6
6
|
import pydantic
|
7
7
|
import typing_extensions as t
|
8
|
+
from langchain_core.tools.base import BaseTool, ToolException
|
9
|
+
|
8
10
|
from beamlit.api.functions import get_function
|
9
11
|
from beamlit.authentication.authentication import AuthenticatedClient
|
10
12
|
from beamlit.common.settings import get_settings
|
11
13
|
from beamlit.models import Function, StoreFunctionParameter
|
12
14
|
from beamlit.run import RunClient
|
13
|
-
from langchain_core.tools.base import BaseTool, ToolException
|
14
15
|
|
15
16
|
|
16
17
|
def create_dynamic_schema(name: str, parameters: list[StoreFunctionParameter]) -> type[pydantic.BaseModel]:
|
@@ -32,7 +32,9 @@ from .function_spec import FunctionSpec
|
|
32
32
|
from .get_trace_ids_response_200 import GetTraceIdsResponse200
|
33
33
|
from .get_trace_logs_response_200 import GetTraceLogsResponse200
|
34
34
|
from .get_trace_response_200 import GetTraceResponse200
|
35
|
-
from .get_workspace_service_accounts_response_200_item import
|
35
|
+
from .get_workspace_service_accounts_response_200_item import (
|
36
|
+
GetWorkspaceServiceAccountsResponse200Item,
|
37
|
+
)
|
36
38
|
from .increase_and_rate_metric import IncreaseAndRateMetric
|
37
39
|
from .integration_config import IntegrationConfig
|
38
40
|
from .integration_connection import IntegrationConnection
|
@@ -75,8 +77,12 @@ from .resource_deployment_metrics_query_per_second_per_region_per_code import (
|
|
75
77
|
ResourceDeploymentMetricsQueryPerSecondPerRegionPerCode,
|
76
78
|
)
|
77
79
|
from .resource_environment_metrics import ResourceEnvironmentMetrics
|
78
|
-
from .resource_environment_metrics_inference_per_region import
|
79
|
-
|
80
|
+
from .resource_environment_metrics_inference_per_region import (
|
81
|
+
ResourceEnvironmentMetricsInferencePerRegion,
|
82
|
+
)
|
83
|
+
from .resource_environment_metrics_query_per_region_per_code import (
|
84
|
+
ResourceEnvironmentMetricsQueryPerRegionPerCode,
|
85
|
+
)
|
80
86
|
from .resource_log import ResourceLog
|
81
87
|
from .resource_metrics import ResourceMetrics
|
82
88
|
from .runtime import Runtime
|
{beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/models/resource_environment_metrics.py
RENAMED
@@ -8,7 +8,9 @@ from ..types import UNSET, Unset
|
|
8
8
|
if TYPE_CHECKING:
|
9
9
|
from ..models.metric import Metric
|
10
10
|
from ..models.qps import QPS
|
11
|
-
from ..models.resource_environment_metrics_inference_per_region import
|
11
|
+
from ..models.resource_environment_metrics_inference_per_region import (
|
12
|
+
ResourceEnvironmentMetricsInferencePerRegion,
|
13
|
+
)
|
12
14
|
from ..models.resource_environment_metrics_query_per_region_per_code import (
|
13
15
|
ResourceEnvironmentMetricsQueryPerRegionPerCode,
|
14
16
|
)
|
@@ -7,14 +7,18 @@ from logging import getLogger
|
|
7
7
|
from uuid import uuid4
|
8
8
|
|
9
9
|
from asgi_correlation_id import CorrelationIdMiddleware
|
10
|
-
from beamlit.common import HTTPError, get_settings, init
|
11
|
-
from beamlit.common.instrumentation import (get_metrics_exporter,
|
12
|
-
get_resource_attributes,
|
13
|
-
get_span_exporter, instrument_app)
|
14
10
|
from fastapi import FastAPI, Request, Response
|
15
11
|
from fastapi.responses import JSONResponse
|
16
12
|
from traceloop.sdk import Traceloop
|
17
13
|
|
14
|
+
from beamlit.common import HTTPError, get_settings, init
|
15
|
+
from beamlit.common.instrumentation import (
|
16
|
+
get_metrics_exporter,
|
17
|
+
get_resource_attributes,
|
18
|
+
get_span_exporter,
|
19
|
+
instrument_app,
|
20
|
+
)
|
21
|
+
|
18
22
|
from .middlewares import AccessLogMiddleware, AddProcessTimeHeader
|
19
23
|
|
20
24
|
sys.path.insert(0, os.getcwd())
|
@@ -55,6 +59,7 @@ app.add_middleware(AddProcessTimeHeader)
|
|
55
59
|
app.add_middleware(AccessLogMiddleware)
|
56
60
|
instrument_app(app)
|
57
61
|
|
62
|
+
|
58
63
|
@app.get("/health")
|
59
64
|
async def health():
|
60
65
|
return {"status": "ok"}
|
@@ -67,7 +72,7 @@ async def root(request: Request):
|
|
67
72
|
try:
|
68
73
|
body = await request.json()
|
69
74
|
|
70
|
-
original_func = getattr(func,
|
75
|
+
original_func = getattr(func, "__wrapped__", func)
|
71
76
|
if asyncio.iscoroutinefunction(func) or asyncio.iscoroutinefunction(original_func):
|
72
77
|
response = await func(body)
|
73
78
|
else:
|
@@ -9,10 +9,10 @@ metadata:
|
|
9
9
|
spec:
|
10
10
|
enabled: true
|
11
11
|
policies: []
|
12
|
-
functions: [
|
12
|
+
functions: [helloworld]
|
13
13
|
agentChain: []
|
14
14
|
model: gpt-4o-mini
|
15
15
|
runtime:
|
16
|
-
image: us.registry.beamlit.com/main/agents/agent-custom
|
16
|
+
image: us.registry.beamlit.com/main/agents/agent-custom:9280b44d
|
17
17
|
description: |
|
18
18
|
A chat agent using Beamlit to handle your tasks.
|
@@ -0,0 +1 @@
|
|
1
|
+
us.registry.beamlit.com/main/agents/agent-custom:9280b44d
|
@@ -0,0 +1,23 @@
|
|
1
|
+
|
2
|
+
FROM python:3.12-slim
|
3
|
+
|
4
|
+
ARG UV_VERSION="latest"
|
5
|
+
RUN apt update && apt install -y curl
|
6
|
+
|
7
|
+
# Install uv.
|
8
|
+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
9
|
+
RUN curl -fsSL https://raw.githubusercontent.com/beamlit/toolkit/main/install.sh | BINDIR=/bin sh
|
10
|
+
WORKDIR /beamlit
|
11
|
+
|
12
|
+
# Install the application dependencies.
|
13
|
+
COPY pyproject.toml /beamlit/pyproject.toml
|
14
|
+
COPY uv.lock /beamlit/uv.lock
|
15
|
+
RUN uv sync --no-cache
|
16
|
+
|
17
|
+
COPY README.m[d] /beamlit/README.md
|
18
|
+
COPY LICENS[E] /beamlit/LICENSE
|
19
|
+
COPY . /beamlit/src
|
20
|
+
|
21
|
+
ENV PATH="/beamlit/.venv/bin:$PATH"
|
22
|
+
|
23
|
+
ENTRYPOINT ["bl","serve","--port","80","--module","functions.helloworld.helloworld"]
|
@@ -0,0 +1 @@
|
|
1
|
+
us.registry.beamlit.com/main/functions/helloworld:109b61a4
|
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
apiVersion: beamlit.com/v1alpha1
|
3
|
+
kind: Function
|
4
|
+
metadata:
|
5
|
+
name: helloworld
|
6
|
+
displayName: helloworld
|
7
|
+
environment: production
|
8
|
+
spec:
|
9
|
+
enabled: true
|
10
|
+
policies: []
|
11
|
+
description: |
|
12
|
+
A function for saying hello to the world.
|
13
|
+
parameters:
|
14
|
+
- name: query
|
15
|
+
type: string
|
16
|
+
required: true
|
17
|
+
description: Parameter query
|
18
|
+
runtime:
|
19
|
+
image: us.registry.beamlit.com/main/functions/helloworld:109b61a4
|
@@ -1 +0,0 @@
|
|
1
|
-
us.registry.beamlit.com/main/agents/agent-custom
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/agents/get_agent_environment_logs.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/configurations/get_configuration.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/environments/create_environment.py
RENAMED
File without changes
|
{beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/environments/delete_environment.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/environments/get_environment_metrics.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/environments/update_environment.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/functions/create_function_release.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/functions/get_function_environment_logs.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/functions/get_function_trace_ids.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/integrations/get_integration_connection.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/integrations/get_integration_model.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.31rc37 → beamlit-0.0.31rc39}/src/beamlit/api/integrations/list_integration_models.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|