beamlit 0.0.23rc14__tar.gz → 0.0.23rc16__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/PKG-INFO +2 -2
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/pyproject.toml +1 -1
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/agents/decorator.py +3 -4
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/common/settings.py +1 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/deploy/deploy.py +167 -9
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/.gitignore +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/README.md +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/beamlit.yaml +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/agents/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/agents/chat.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/create_agent.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/create_agent_release.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/delete_agent.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/delete_agent_deployment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/delete_agent_deployment_history.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/delete_agent_history.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/get_agent.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/get_agent_deployment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/get_agent_deployment_history.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/get_agent_deployment_logs.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/get_agent_deployment_metrics.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/get_agent_environment_logs.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/get_agent_history.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/get_agent_metrics.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/list_agent_deployment_history.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/list_agent_deployments.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/list_agent_history.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/list_agents.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/put_agent_deployment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/put_agent_deployment_history.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/put_agent_history.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/update_agent.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/configurations/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/configurations/get_configuration.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/environments/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/environments/create_environment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/environments/delete_environment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/environments/get_environment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/environments/get_environment_metrics.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/environments/list_environments.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/environments/update_environment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/create_function.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/create_function_release.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/delete_function.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/delete_function_deployment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/get_function.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/get_function_deployment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/get_function_deployment_logs.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/get_function_deployment_metrics.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/get_function_environment_logs.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/get_function_metrics.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/list_function_deployments.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/list_functions.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/put_function_deployment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/update_function.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/history/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/history/get_agents_history.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/history/list_agents_history.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/integrations/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/integrations/create_integration_connection.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/integrations/delete_integration_connection.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/integrations/get_integration.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/integrations/get_integration_connection.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/integrations/get_integration_connection_model.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/integrations/get_integration_model.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/integrations/list_integration_connection_models.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/integrations/list_integration_connections.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/integrations/list_integration_models.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/integrations/update_integration_connection.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/invitations/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/invitations/list_all_pending_invitations.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/locations/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/locations/list_locations.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/metrics/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/metrics/get_metrics.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/model_providers/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/model_providers/create_model_provider.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/model_providers/delete_model_provider.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/model_providers/get_model_provider.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/model_providers/list_model_providers.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/model_providers/update_model_provider.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/create_model.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/delete_model.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/delete_model_deployment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/get_model.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/get_model_deployment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/get_model_deployment_logs.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/get_model_deployment_metrics.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/get_model_environment_logs.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/get_model_metrics.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/list_model_deployments.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/list_models.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/put_model_deployment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/release_model.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/update_model.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/policies/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/policies/create_policy.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/policies/delete_policy.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/policies/get_policy.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/policies/list_policies.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/policies/update_policy.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/service_accounts/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/service_accounts/create_api_key_for_service_account.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/service_accounts/create_workspace_service_account.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/service_accounts/delete_api_key_for_service_account.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/service_accounts/delete_workspace_service_account.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/service_accounts/get_workspace_service_accounts.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/service_accounts/list_api_keys_for_service_account.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/service_accounts/update_workspace_service_account.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/store/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/store/get_store_agent.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/store/get_store_function.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/store/list_store_agents.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/store/list_store_functions.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/workspaces/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/workspaces/accept_workspace_invitation.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/workspaces/create_worspace.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/workspaces/decline_workspace_invitation.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/workspaces/delete_workspace.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/workspaces/get_workspace.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/workspaces/invite_workspace_user.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/workspaces/leave_workspace.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/workspaces/list_workspace_users.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/workspaces/list_workspaces.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/workspaces/remove_workspace_user.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/workspaces/update_workspace.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/workspaces/update_workspace_user_role.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/authentication/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/authentication/apikey.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/authentication/authentication.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/authentication/clientcredentials.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/authentication/credentials.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/authentication/device_mode.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/client.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/common/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/common/generate.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/common/logger.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/common/secrets.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/common/utils.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/deploy/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/errors.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/functions/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/functions/decorator.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/functions/github/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/functions/github/github.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/functions/github/kit/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/functions/github/kit/pull_request.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/functions/math/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/functions/math/math.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/functions/search/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/functions/search/search.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/acl.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/agent.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/agent_chain.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/agent_configuration.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/agent_deployment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/agent_deployment_configuration.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/agent_deployment_configuration_type_0.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/agent_deployment_history.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/agent_deployment_history_event.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/agent_deployment_pod_template.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/agent_deployment_pod_template_type_0.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/agent_history.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/agent_history_event.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/agent_metadata.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/agent_release.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/agent_spec.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/agent_with_deployments.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/api_key.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/authentication_provider_model.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/authentication_provider_organization.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/configuration.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/continent.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/core_spec.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/country.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/create_api_key_for_service_account_body.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/create_workspace_service_account_body.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/create_workspace_service_account_response_200.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/delete_workspace_service_account_response_200.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/deployment_configuration.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/deployment_configurations.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/deployment_serverless_config.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/deployment_serverless_config_type_0.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/environment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/environment_metrics.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/environment_spec.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/flavor.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/function.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/function_configuration.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/function_deployment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/function_deployment_configuration.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/function_deployment_configuration_type_0.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/function_deployment_pod_template.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/function_deployment_pod_template_type_0.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/function_kit.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/function_metadata.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/function_provider_ref.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/function_release.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/function_spec.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/function_with_deployments.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/get_workspace_service_accounts_response_200_item.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/increase_and_rate_metric.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/integration.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/integration_config.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/integration_connection.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/integration_connection_config.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/integration_connection_secret.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/integration_connection_spec.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/integration_model.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/integration_secret.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/invite_workspace_user_body.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/labels_type_0.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/location.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/location_response.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/metadata.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/metadata_labels.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/metric.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/metrics.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/model.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/model_deployment.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/model_deployment_log.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/model_deployment_metrics.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/model_deployment_metrics_inference_per_second_per_region.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/model_deployment_metrics_query_per_second_per_region_per_code.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/model_deployment_pod_template.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/model_deployment_pod_template_type_0.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/model_metadata.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/model_metrics.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/model_provider.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/model_provider_ref.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/model_release.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/model_spec.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/model_with_deployments.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/owner_fields.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/pending_invitation.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/pending_invitation_accept.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/pending_invitation_render.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/pending_invitation_render_invited_by.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/pending_invitation_render_workspace.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/pending_invitation_workspace_details.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/pod_template_spec.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/policy.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/policy_location.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/policy_spec.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/provider_config.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/qps.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/resource_deployment_log.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/resource_deployment_metrics.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/resource_deployment_metrics_inference_per_region.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/resource_deployment_metrics_inference_per_region_type_0.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/resource_deployment_metrics_inference_per_second_per_region.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/resource_deployment_metrics_inference_per_second_per_region_type_0.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/resource_deployment_metrics_query_per_region_per_code.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/resource_deployment_metrics_query_per_region_per_code_type_0.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code_type_0.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/resource_environment_metrics.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/resource_environment_metrics_inference_per_second_per_region.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/resource_environment_metrics_query_per_second_per_region_per_code.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/resource_log.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/resource_metrics.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/runtime.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/runtime_readiness_probe.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/runtime_readiness_probe_type_0.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/runtime_resources.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/runtime_type_0.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/runtime_type_0_readiness_probe.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/runtime_type_0_readiness_probe_type_0.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/runtime_type_0_resources.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/serverless_config.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/spec_configuration.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/standard_fields_dynamo_db.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/store_agent.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/store_agent_configuration.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/store_agent_labels.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/store_agent_labels_type_0.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/store_configuration.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/store_configuration_option.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/store_function.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/store_function_configuration.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/store_function_kit.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/store_function_labels.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/store_function_labels_type_0.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/store_function_parameter.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/time_fields.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/update_workspace_service_account_body.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/update_workspace_service_account_response_200.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/update_workspace_user_role_body.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/websocket_channel.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/workspace.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/workspace_labels.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/models/workspace_user.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/py.typed +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/run.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/serve/app.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/serve/middlewares/__init__.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/serve/middlewares/accesslog.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/serve/middlewares/processtime.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/types.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/integrationtest/agent.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/integrationtest/functions/helloworld.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/integrationtest/main.py +0 -0
- {beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/uv.lock +0 -0
@@ -5,15 +5,14 @@ import importlib
|
|
5
5
|
import os
|
6
6
|
from logging import getLogger
|
7
7
|
|
8
|
-
from langchain_core.tools import Tool
|
9
|
-
from langgraph.checkpoint.memory import MemorySaver
|
10
|
-
from langgraph.prebuilt import create_react_agent
|
11
|
-
|
12
8
|
from beamlit.api.models import get_model_deployment
|
13
9
|
from beamlit.authentication import new_client
|
14
10
|
from beamlit.common.settings import get_settings, init
|
15
11
|
from beamlit.errors import UnexpectedStatus
|
16
12
|
from beamlit.models import AgentDeployment
|
13
|
+
from langchain_core.tools import Tool
|
14
|
+
from langgraph.checkpoint.memory import MemorySaver
|
15
|
+
from langgraph.prebuilt import create_react_agent
|
17
16
|
|
18
17
|
from .chat import get_chat_model
|
19
18
|
|
@@ -65,6 +65,7 @@ class Settings(BaseSettings):
|
|
65
65
|
name: str = Field(default="beamlit-agent")
|
66
66
|
base_url: str = Field(default="https://api.beamlit.dev/v0")
|
67
67
|
run_url: str = Field(default="https://run.beamlit.dev")
|
68
|
+
registry_url: str = Field(default="https://serverless-registry-production.beamlit.workers.dev")
|
68
69
|
log_level: str = Field(default="INFO")
|
69
70
|
agent: SettingsAgent = SettingsAgent()
|
70
71
|
server: SettingsServer = SettingsServer()
|
@@ -7,9 +7,10 @@ from dataclasses import dataclass
|
|
7
7
|
from logging import getLogger
|
8
8
|
from typing import Callable, Literal
|
9
9
|
|
10
|
-
from beamlit.common.settings import Settings, init
|
10
|
+
from beamlit.common.settings import Settings, get_settings, init
|
11
11
|
from beamlit.models import (AgentChain, AgentDeployment, Flavor,
|
12
|
-
FunctionDeployment,
|
12
|
+
FunctionDeployment, Runtime,
|
13
|
+
StoreFunctionParameter)
|
13
14
|
|
14
15
|
sys.path.insert(0, os.getcwd())
|
15
16
|
sys.path.insert(0, os.path.join(os.getcwd(), "src"))
|
@@ -24,6 +25,16 @@ class Resource:
|
|
24
25
|
func: Callable
|
25
26
|
|
26
27
|
def get_resources(from_decorator, dir="src") -> list[Resource]:
|
28
|
+
"""
|
29
|
+
Scans through Python files in a directory to find functions decorated with a specific decorator.
|
30
|
+
|
31
|
+
Args:
|
32
|
+
from_decorator (str): The name of the decorator to search for
|
33
|
+
dir (str): The directory to scan, defaults to "src"
|
34
|
+
|
35
|
+
Returns:
|
36
|
+
list[Resource]: List of Resource objects containing information about decorated functions
|
37
|
+
"""
|
27
38
|
resources = []
|
28
39
|
logger = getLogger(__name__)
|
29
40
|
|
@@ -80,6 +91,15 @@ def get_resources(from_decorator, dir="src") -> list[Resource]:
|
|
80
91
|
|
81
92
|
|
82
93
|
def get_parameters(resource: Resource) -> list[StoreFunctionParameter]:
|
94
|
+
"""
|
95
|
+
Extracts parameter information from a function's signature and docstring.
|
96
|
+
|
97
|
+
Args:
|
98
|
+
resource (Resource): The resource object containing the function to analyze
|
99
|
+
|
100
|
+
Returns:
|
101
|
+
list[StoreFunctionParameter]: List of parameter objects with name, type, required status, and description
|
102
|
+
"""
|
83
103
|
parameters = []
|
84
104
|
# Get function signature
|
85
105
|
import inspect
|
@@ -134,6 +154,16 @@ def get_parameters(resource: Resource) -> list[StoreFunctionParameter]:
|
|
134
154
|
|
135
155
|
|
136
156
|
def get_description(description: str | None, resource: Resource) -> str:
|
157
|
+
"""
|
158
|
+
Gets the description of a function from either a provided description or the function's docstring.
|
159
|
+
|
160
|
+
Args:
|
161
|
+
description (str | None): Optional explicit description
|
162
|
+
resource (Resource): The resource object containing the function
|
163
|
+
|
164
|
+
Returns:
|
165
|
+
str: The function description
|
166
|
+
"""
|
137
167
|
if description:
|
138
168
|
return description
|
139
169
|
doc = resource.func.__doc__
|
@@ -152,6 +182,15 @@ def get_description(description: str | None, resource: Resource) -> str:
|
|
152
182
|
return ""
|
153
183
|
|
154
184
|
def get_kwargs(arg: ast.Call) -> dict:
|
185
|
+
"""
|
186
|
+
Extracts keyword arguments from an AST Call node.
|
187
|
+
|
188
|
+
Args:
|
189
|
+
arg (ast.Call): The AST Call node to process
|
190
|
+
|
191
|
+
Returns:
|
192
|
+
dict: Dictionary of keyword arguments and their values
|
193
|
+
"""
|
155
194
|
kwargs = {}
|
156
195
|
for keyword in arg.keywords:
|
157
196
|
if isinstance(keyword.value, ast.Constant):
|
@@ -171,37 +210,100 @@ def get_kwargs(arg: ast.Call) -> dict:
|
|
171
210
|
kwargs[keyword.arg][k.value] = get_kwargs(v)
|
172
211
|
return kwargs
|
173
212
|
|
213
|
+
def get_runtime(type: str, name: str) -> Runtime:
|
214
|
+
settings = get_settings()
|
215
|
+
registry_url = settings.registry_url.replace("https://", "").replace("http://", "")
|
216
|
+
image = f"{registry_url}/{settings.workspace}/{type}s/{name}"
|
217
|
+
return Runtime(image=image)
|
218
|
+
|
174
219
|
def get_beamlit_deployment_from_resource(resource: Resource) -> AgentDeployment | FunctionDeployment:
|
220
|
+
"""
|
221
|
+
Creates a deployment configuration from a resource.
|
222
|
+
|
223
|
+
Args:
|
224
|
+
resource (Resource): The resource to create a deployment for
|
225
|
+
|
226
|
+
Returns:
|
227
|
+
AgentDeployment | FunctionDeployment: The deployment configuration
|
228
|
+
"""
|
175
229
|
for arg in resource.decorator.args:
|
176
230
|
if isinstance(arg, ast.Call):
|
177
231
|
if isinstance(arg.func, ast.Name) and arg.func.id == "AgentDeployment":
|
178
232
|
kwargs = get_kwargs(arg)
|
179
233
|
description = kwargs.pop("description", None)
|
180
|
-
return AgentDeployment(
|
234
|
+
return AgentDeployment(
|
235
|
+
**kwargs,
|
236
|
+
description=get_description(description, resource),
|
237
|
+
runtime=get_runtime("agent", kwargs.get("agent", resource.name))
|
238
|
+
)
|
181
239
|
if isinstance(arg.func, ast.Name) and arg.func.id == "FunctionDeployment":
|
182
240
|
kwargs = get_kwargs(arg)
|
183
241
|
description = kwargs.pop("description", None)
|
184
|
-
return FunctionDeployment(
|
242
|
+
return FunctionDeployment(
|
243
|
+
**kwargs,
|
244
|
+
parameters=get_parameters(resource),
|
245
|
+
description=get_description(description, resource),
|
246
|
+
runtime=get_runtime("function", kwargs.get("function", resource.name))
|
247
|
+
)
|
248
|
+
for arg in resource.decorator.keywords:
|
249
|
+
if isinstance(arg.value, ast.Call):
|
250
|
+
if isinstance(arg.value.func, ast.Name) and arg.value.func.id == "AgentDeployment":
|
251
|
+
kwargs = get_kwargs(arg.value)
|
252
|
+
description = kwargs.pop("description", None)
|
253
|
+
return AgentDeployment(
|
254
|
+
**kwargs,
|
255
|
+
description=get_description(description, resource),
|
256
|
+
runtime=get_runtime("agent", kwargs.get("agent", resource.name))
|
257
|
+
)
|
258
|
+
if isinstance(arg.value.func, ast.Name) and arg.value.func.id == "FunctionDeployment":
|
259
|
+
kwargs = get_kwargs(arg.value)
|
260
|
+
description = kwargs.pop("description", None)
|
261
|
+
return FunctionDeployment(
|
262
|
+
**kwargs,
|
263
|
+
parameters=get_parameters(resource),
|
264
|
+
description=get_description(description, resource),
|
265
|
+
runtime=get_runtime("function", kwargs.get("function", resource.name))
|
266
|
+
)
|
185
267
|
if resource.type == "agent":
|
186
268
|
return AgentDeployment(
|
187
269
|
agent=resource.name,
|
188
|
-
description=get_description(None,resource)
|
270
|
+
description=get_description(None,resource),
|
271
|
+
runtime=get_runtime("agent", resource.name)
|
189
272
|
)
|
190
273
|
if resource.type == "function":
|
191
274
|
return FunctionDeployment(
|
192
275
|
function=resource.name,
|
193
276
|
parameters=get_parameters(resource),
|
194
|
-
description=get_description(None,resource)
|
277
|
+
description=get_description(None,resource),
|
278
|
+
runtime=get_runtime("function", resource.name)
|
195
279
|
)
|
196
280
|
return None
|
197
281
|
|
198
282
|
|
199
283
|
def get_flavors(flavors: list[Flavor]) -> str:
|
284
|
+
"""
|
285
|
+
Converts a list of Flavor objects to JSON string.
|
286
|
+
|
287
|
+
Args:
|
288
|
+
flavors (list[Flavor]): List of Flavor objects
|
289
|
+
|
290
|
+
Returns:
|
291
|
+
str: JSON string representation of flavors
|
292
|
+
"""
|
200
293
|
if not flavors:
|
201
294
|
return "[]"
|
202
295
|
return json.dumps([flavor.to_dict() for flavor in flavors])
|
203
296
|
|
204
297
|
def format_parameters(parameters: list[StoreFunctionParameter]) -> str:
|
298
|
+
"""
|
299
|
+
Formats function parameters into YAML-compatible string.
|
300
|
+
|
301
|
+
Args:
|
302
|
+
parameters (list[StoreFunctionParameter]): List of parameter objects
|
303
|
+
|
304
|
+
Returns:
|
305
|
+
str: YAML-formatted string of parameters
|
306
|
+
"""
|
205
307
|
if not parameters:
|
206
308
|
return "[]"
|
207
309
|
|
@@ -216,6 +318,15 @@ def format_parameters(parameters: list[StoreFunctionParameter]) -> str:
|
|
216
318
|
return "\n".join(formatted)
|
217
319
|
|
218
320
|
def format_agent_chain(agent_chain: list[AgentChain]) -> str:
|
321
|
+
"""
|
322
|
+
Formats agent chain configuration into YAML-compatible string.
|
323
|
+
|
324
|
+
Args:
|
325
|
+
agent_chain (list[AgentChain]): List of agent chain configurations
|
326
|
+
|
327
|
+
Returns:
|
328
|
+
str: YAML-formatted string of agent chain
|
329
|
+
"""
|
219
330
|
if not agent_chain:
|
220
331
|
return "[]"
|
221
332
|
formatted = []
|
@@ -229,20 +340,33 @@ def format_agent_chain(agent_chain: list[AgentChain]) -> str:
|
|
229
340
|
return "\n".join(formatted)
|
230
341
|
|
231
342
|
def get_agent_yaml(agent: AgentDeployment, functions: list[tuple[Resource, FunctionDeployment]], settings: Settings) -> str:
|
343
|
+
"""
|
344
|
+
Generates YAML configuration for an agent deployment.
|
345
|
+
|
346
|
+
Args:
|
347
|
+
agent (AgentDeployment): Agent deployment configuration
|
348
|
+
functions (list[tuple[Resource, FunctionDeployment]]): List of associated functions
|
349
|
+
settings (Settings): Application settings
|
350
|
+
|
351
|
+
Returns:
|
352
|
+
str: YAML configuration string
|
353
|
+
"""
|
232
354
|
template = f"""
|
233
355
|
apiVersion: beamlit.com/v1alpha1
|
234
356
|
kind: Agent
|
235
357
|
metadata:
|
236
358
|
name: {agent.agent}
|
237
359
|
spec:
|
238
|
-
display_name:
|
360
|
+
display_name: {agent.agent}
|
239
361
|
deployments:
|
240
|
-
- environment:
|
362
|
+
- environment: {settings.environment}
|
241
363
|
enabled: true
|
242
364
|
policies: [{", ".join(agent.policies or [])}]
|
243
365
|
functions: [{", ".join([f"{function.function}" for (_, function) in functions])}]
|
244
366
|
agent_chain: {format_agent_chain(agent.agent_chain)}
|
245
367
|
model: {agent.model}
|
368
|
+
runtime:
|
369
|
+
image: {agent.runtime.image}
|
246
370
|
"""
|
247
371
|
if agent.description:
|
248
372
|
template += f""" description: |
|
@@ -250,6 +374,16 @@ spec:
|
|
250
374
|
return template
|
251
375
|
|
252
376
|
def get_function_yaml(function: FunctionDeployment, settings: Settings) -> str:
|
377
|
+
"""
|
378
|
+
Generates YAML configuration for a function deployment.
|
379
|
+
|
380
|
+
Args:
|
381
|
+
function (FunctionDeployment): Function deployment configuration
|
382
|
+
settings (Settings): Application settings
|
383
|
+
|
384
|
+
Returns:
|
385
|
+
str: YAML configuration string
|
386
|
+
"""
|
253
387
|
return f"""
|
254
388
|
apiVersion: beamlit.com/v1alpha1
|
255
389
|
kind: Function
|
@@ -264,9 +398,22 @@ spec:
|
|
264
398
|
description: |
|
265
399
|
{function.description}
|
266
400
|
parameters: {format_parameters(function.parameters)}
|
401
|
+
runtime:
|
402
|
+
image: {function.runtime.image}
|
267
403
|
"""
|
268
404
|
|
269
|
-
def dockerfile(type: Literal["agent", "function"], resource: Resource, deployment: AgentDeployment | FunctionDeployment):
|
405
|
+
def dockerfile(type: Literal["agent", "function"], resource: Resource, deployment: AgentDeployment | FunctionDeployment) -> str:
|
406
|
+
"""
|
407
|
+
Generates Dockerfile content for agent or function deployment.
|
408
|
+
|
409
|
+
Args:
|
410
|
+
type (Literal["agent", "function"]): Type of deployment
|
411
|
+
resource (Resource): Resource to be deployed
|
412
|
+
deployment (AgentDeployment | FunctionDeployment): Deployment configuration
|
413
|
+
|
414
|
+
Returns:
|
415
|
+
str: Dockerfile content
|
416
|
+
"""
|
270
417
|
if type == "agent":
|
271
418
|
module = f"{resource.module.__file__.split('/')[-1].replace('.py', '')}.{resource.module.__name__}"
|
272
419
|
else:
|
@@ -302,6 +449,17 @@ ENTRYPOINT [{cmd_str}]
|
|
302
449
|
"""
|
303
450
|
|
304
451
|
def generate_beamlit_deployment(directory: str):
|
452
|
+
"""
|
453
|
+
Generates all necessary deployment files for Beamlit agents and functions.
|
454
|
+
|
455
|
+
Args:
|
456
|
+
directory (str): Target directory for generated files
|
457
|
+
|
458
|
+
Creates:
|
459
|
+
- Agent and function YAML configurations
|
460
|
+
- Dockerfiles for each deployment
|
461
|
+
- Directory structure for agents and functions
|
462
|
+
"""
|
305
463
|
settings = init()
|
306
464
|
logger = getLogger(__name__)
|
307
465
|
logger.info(f"Importing server module: {settings.server.module}")
|
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.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/delete_agent_deployment_history.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/get_agent_deployment_history.py
RENAMED
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/get_agent_deployment_logs.py
RENAMED
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/get_agent_deployment_metrics.py
RENAMED
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/get_agent_environment_logs.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/list_agent_deployment_history.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/agents/put_agent_deployment_history.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/configurations/get_configuration.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/environments/create_environment.py
RENAMED
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/environments/delete_environment.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/environments/get_environment_metrics.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/environments/update_environment.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/create_function_release.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/delete_function_deployment.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/get_function_deployment.py
RENAMED
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/get_function_deployment_logs.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/get_function_environment_logs.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/list_function_deployments.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/functions/put_function_deployment.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.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/integrations/get_integration_connection.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/integrations/get_integration_model.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/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
|
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/model_providers/create_model_provider.py
RENAMED
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/model_providers/delete_model_provider.py
RENAMED
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/model_providers/get_model_provider.py
RENAMED
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/model_providers/list_model_providers.py
RENAMED
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/model_providers/update_model_provider.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/get_model_deployment_logs.py
RENAMED
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/get_model_deployment_metrics.py
RENAMED
File without changes
|
{beamlit-0.0.23rc14 → beamlit-0.0.23rc16}/src/beamlit/api/models/get_model_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
|
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
|
File without changes
|
File without changes
|