beamlit 0.0.33rc49__tar.gz → 0.0.33rc50__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/PKG-INFO +1 -1
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/pyproject.toml +1 -1
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/common/__init__.py +1 -2
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/common/settings.py +4 -63
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/integrationtest/main.py +0 -1
- beamlit-0.0.33rc49/src/beamlit/common/generate.py +0 -196
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/.gitignore +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/README.md +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/beamlit.yaml +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/agents/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/agents/chain.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/agents/chat.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/agents/decorator.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/agents/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/agents/create_agent.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/agents/create_agent_release.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/agents/delete_agent.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/agents/delete_agent_history.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/agents/get_agent.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/agents/get_agent_environment_logs.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/agents/get_agent_history.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/agents/get_agent_metrics.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/agents/get_agent_trace_ids.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/agents/list_agent_history.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/agents/list_agents.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/agents/put_agent_history.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/agents/update_agent.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/configurations/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/configurations/get_configuration.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/default/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/default/get_trace.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/default/get_trace_ids.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/default/get_trace_logs.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/environments/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/environments/create_environment.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/environments/delete_environment.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/environments/get_environment.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/environments/get_environment_metrics.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/environments/list_environments.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/environments/update_environment.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/functions/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/functions/create_function.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/functions/create_function_release.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/functions/delete_function.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/functions/get_function.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/functions/get_function_environment_logs.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/functions/get_function_metrics.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/functions/get_function_trace_ids.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/functions/list_functions.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/functions/update_function.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/history/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/history/get_agents_history.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/history/list_agents_history.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/integrations/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/integrations/create_integration_connection.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/integrations/delete_integration_connection.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/integrations/get_integration.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/integrations/get_integration_connection.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/integrations/get_integration_connection_model.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/integrations/get_integration_model.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/integrations/list_integration_connection_models.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/integrations/list_integration_connections.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/integrations/list_integration_models.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/integrations/update_integration_connection.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/invitations/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/invitations/list_all_pending_invitations.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/locations/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/locations/list_locations.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/metrics/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/metrics/get_metrics.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/model_providers/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/model_providers/create_model_provider.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/model_providers/delete_model_provider.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/model_providers/get_model_provider.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/model_providers/list_model_providers.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/model_providers/update_model_provider.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/models/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/models/create_model.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/models/delete_model.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/models/get_model.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/models/get_model_environment_logs.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/models/get_model_metrics.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/models/get_model_trace_ids.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/models/list_models.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/models/release_model.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/models/update_model.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/policies/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/policies/create_policy.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/policies/delete_policy.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/policies/get_policy.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/policies/list_policies.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/policies/update_policy.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/privateclusters/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/privateclusters/create_private_cluster.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/privateclusters/delete_private_cluster.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/privateclusters/get_private_cluster.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/privateclusters/get_private_cluster_health.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/privateclusters/list_private_clusters.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/privateclusters/update_private_cluster.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/privateclusters/update_private_cluster_health.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/service_accounts/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/service_accounts/create_api_key_for_service_account.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/service_accounts/create_workspace_service_account.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/service_accounts/delete_api_key_for_service_account.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/service_accounts/delete_workspace_service_account.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/service_accounts/get_workspace_service_accounts.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/service_accounts/list_api_keys_for_service_account.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/service_accounts/update_workspace_service_account.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/store/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/store/get_store_agent.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/store/get_store_function.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/store/list_store_agents.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/store/list_store_functions.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/workspaces/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/workspaces/accept_workspace_invitation.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/workspaces/create_worspace.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/workspaces/decline_workspace_invitation.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/workspaces/delete_workspace.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/workspaces/get_workspace.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/workspaces/invite_workspace_user.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/workspaces/leave_workspace.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/workspaces/list_workspace_users.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/workspaces/list_workspaces.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/workspaces/remove_workspace_user.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/workspaces/update_workspace.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/workspaces/update_workspace_user_role.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/authentication/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/authentication/apikey.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/authentication/authentication.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/authentication/clientcredentials.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/authentication/credentials.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/authentication/device_mode.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/client.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/common/error.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/common/instrumentation.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/common/logger.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/common/secrets.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/common/slugify.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/common/utils.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/deploy/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/deploy/deploy.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/deploy/format.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/deploy/parser.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/errors.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/functions/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/functions/decorator.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/functions/github/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/functions/github/github.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/functions/github/kit/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/functions/github/kit/pull_request.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/functions/math/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/functions/math/math.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/functions/mcp/mcp.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/functions/remote/remote.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/functions/search/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/functions/search/search.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/acl.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/agent.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/agent_chain.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/agent_history.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/agent_history_event.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/agent_metadata.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/agent_release.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/agent_spec.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/api_key.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/configuration.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/continent.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/core_spec.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/core_spec_configurations.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/core_status.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/country.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/create_api_key_for_service_account_body.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/create_workspace_service_account_body.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/create_workspace_service_account_response_200.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/delete_workspace_service_account_response_200.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/environment.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/environment_metadata.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/environment_metrics.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/environment_spec.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/flavor.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/function.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/function_kit.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/function_metadata.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/function_release.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/function_spec.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/get_trace_ids_response_200.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/get_trace_logs_response_200.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/get_trace_response_200.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/get_workspace_service_accounts_response_200_item.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/increase_and_rate_metric.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/integration_config.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/integration_connection.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/integration_connection_config.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/integration_connection_secret.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/integration_connection_spec.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/integration_model.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/invite_workspace_user_body.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/location_response.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/metadata.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/metadata_labels.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/metric.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/metrics.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/model.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/model_metadata.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/model_private_cluster.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/model_provider.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/model_release.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/model_spec.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/owner_fields.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/pending_invitation.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/pending_invitation_accept.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/pending_invitation_render.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/pending_invitation_render_invited_by.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/pending_invitation_render_workspace.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/pending_invitation_workspace_details.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/pod_template_spec.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/policy.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/policy_location.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/policy_spec.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/private_cluster.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/private_location.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/provider_config.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/qps.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/resource_deployment_metrics.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/resource_deployment_metrics_inference_per_second_per_region.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/resource_environment_metrics.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/resource_environment_metrics_inference_per_region.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/resource_environment_metrics_inference_per_second_per_region.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/resource_environment_metrics_query_per_region_per_code.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/resource_environment_metrics_query_per_second_per_region_per_code.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/resource_log.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/resource_metrics.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/runtime.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/runtime_readiness_probe.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/runtime_resources.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/serverless_config.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/spec_configuration.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/store_agent.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/store_agent_labels.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/store_configuration.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/store_configuration_option.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/store_function.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/store_function_kit.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/store_function_labels.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/store_function_parameter.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/time_fields.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/trace_ids_response.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/update_workspace_service_account_body.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/update_workspace_service_account_response_200.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/update_workspace_user_role_body.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/websocket_channel.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/workspace.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/workspace_labels.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/models/workspace_user.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/py.typed +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/run.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/serve/app.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/serve/middlewares/__init__.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/serve/middlewares/accesslog.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/serve/middlewares/processtime.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/types.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/integrationtest/agent.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/integrationtest/beamlit.yaml +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/integrationtest/functions/helloworld.py +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/integrationtest/pyproject.toml +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/integrationtest/uv.lock +0 -0
- {beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/uv.lock +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
from .error import HTTPError
|
2
2
|
from .logger import init as init_logger
|
3
3
|
from .secrets import Secret
|
4
|
-
from .settings import Settings, get_settings, init
|
4
|
+
from .settings import Settings, get_settings, init
|
5
5
|
from .slugify import slugify
|
6
6
|
from .utils import copy_folder
|
7
7
|
|
@@ -9,7 +9,6 @@ __all__ = [
|
|
9
9
|
"Secret",
|
10
10
|
"Settings",
|
11
11
|
"get_settings",
|
12
|
-
"init_agent",
|
13
12
|
"init",
|
14
13
|
"copy_folder",
|
15
14
|
"init_logger",
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import os
|
2
|
-
from logging import getLogger
|
3
2
|
from typing import Tuple, Type, Union
|
4
3
|
|
5
4
|
from langchain_core.language_models.chat_models import BaseChatModel
|
@@ -12,22 +11,17 @@ from pydantic_settings import (
|
|
12
11
|
YamlConfigSettingsSource,
|
13
12
|
)
|
14
13
|
|
15
|
-
from beamlit.api.agents import get_agent
|
16
|
-
from beamlit.api.functions import get_function
|
17
|
-
from beamlit.api.models import get_model
|
18
|
-
from beamlit.client import AuthenticatedClient
|
19
14
|
from beamlit.common.logger import init as init_logger
|
20
15
|
from beamlit.models import Agent, Function, Model
|
21
|
-
from beamlit.types import UNSET, Unset
|
22
16
|
|
23
17
|
global SETTINGS
|
24
18
|
SETTINGS = None
|
25
19
|
|
26
20
|
class SettingsAgent(BaseSettings):
|
27
|
-
agent: Union[None, CompiledGraph
|
28
|
-
chain: Union[
|
29
|
-
model: Union[
|
30
|
-
functions: Union[
|
21
|
+
agent: Union[None, CompiledGraph] = None
|
22
|
+
chain: Union[None, list[Agent]] = None
|
23
|
+
model: Union[None, Model] = None
|
24
|
+
functions: Union[None, list[Function]] = None
|
31
25
|
functions_directory: str = Field(default="src/functions")
|
32
26
|
chat_model: Union[None, BaseChatModel] = None
|
33
27
|
module: str = Field(default="main.main")
|
@@ -100,59 +94,6 @@ class Settings(BaseSettings):
|
|
100
94
|
def get_settings() -> Settings:
|
101
95
|
return SETTINGS
|
102
96
|
|
103
|
-
|
104
|
-
def init_agent(
|
105
|
-
client: AuthenticatedClient,
|
106
|
-
destination: str = f"{os.getcwd()}/src/beamlit_generated.py",
|
107
|
-
):
|
108
|
-
from beamlit.common.generate import generate
|
109
|
-
|
110
|
-
logger = getLogger(__name__)
|
111
|
-
settings = get_settings()
|
112
|
-
# Init configuration from environment variables
|
113
|
-
if settings.agent.functions or settings.agent.chain:
|
114
|
-
return
|
115
|
-
|
116
|
-
# Init configuration from beamlit control plane
|
117
|
-
name = settings.name
|
118
|
-
env = settings.environment
|
119
|
-
|
120
|
-
agent = get_agent.sync(name, environment=env, client=client)
|
121
|
-
if not agent:
|
122
|
-
raise ValueError(f"Agent {name} not found")
|
123
|
-
functions: list[Function] = []
|
124
|
-
agents_chain: list[Agent] = []
|
125
|
-
if agent.spec.functions:
|
126
|
-
for function in agent.spec.functions:
|
127
|
-
function = get_function.sync(function, environment=env, client=client)
|
128
|
-
if function:
|
129
|
-
functions.append(function)
|
130
|
-
settings.agent.functions = functions
|
131
|
-
|
132
|
-
if agent.spec.agentChain:
|
133
|
-
for chain in agent.spec.agentChain:
|
134
|
-
if chain.enabled:
|
135
|
-
agentChain = get_agent.sync(chain.name, environment=env, client=client)
|
136
|
-
if chain.description:
|
137
|
-
agentChain.spec.description = chain.description
|
138
|
-
agents_chain.append(agentChain)
|
139
|
-
settings.agent.chain = agents_chain
|
140
|
-
if agent.spec.model:
|
141
|
-
model = get_model.sync(agent.spec.model, environment=env, client=client)
|
142
|
-
settings.agent.model = model
|
143
|
-
|
144
|
-
content_generate = generate(destination, dry_run=True)
|
145
|
-
compared_content = None
|
146
|
-
if os.path.exists(destination):
|
147
|
-
compared_content = open(destination).read()
|
148
|
-
|
149
|
-
if not os.path.exists(destination) or (
|
150
|
-
compared_content and content_generate != compared_content
|
151
|
-
):
|
152
|
-
logger.info("Generating agent code")
|
153
|
-
generate(destination)
|
154
|
-
|
155
|
-
|
156
97
|
def init() -> Settings:
|
157
98
|
"""Parse the beamlit.yaml file to get configurations."""
|
158
99
|
from beamlit.authentication.credentials import current_context
|
@@ -1,196 +0,0 @@
|
|
1
|
-
from typing import Tuple
|
2
|
-
|
3
|
-
from beamlit.common.settings import Settings, get_settings
|
4
|
-
from beamlit.models import Agent, Function, FunctionMetadata, FunctionSpec
|
5
|
-
from beamlit.models.function_kit import FunctionKit
|
6
|
-
|
7
|
-
|
8
|
-
def get_titles_name(name: str) -> str:
|
9
|
-
return name.title().replace("-", "").replace("_", "")
|
10
|
-
|
11
|
-
|
12
|
-
def generate_kit_function_code(
|
13
|
-
settings: Settings, function: Function, kit: FunctionKit
|
14
|
-
) -> Tuple[str, str]:
|
15
|
-
export_code = ""
|
16
|
-
code = ""
|
17
|
-
for kit in kit:
|
18
|
-
fn = Function(
|
19
|
-
metadata=FunctionMetadata(
|
20
|
-
name=kit.name,
|
21
|
-
workspace=settings.workspace,
|
22
|
-
environment=settings.environment,
|
23
|
-
),
|
24
|
-
spec=FunctionSpec(
|
25
|
-
parameters=kit.parameters,
|
26
|
-
description=kit.description,
|
27
|
-
),
|
28
|
-
)
|
29
|
-
new_code, export = generate_function_code(
|
30
|
-
settings, fn, force_name_in_endpoint=function.metadata.name, kit=True
|
31
|
-
)
|
32
|
-
code += new_code
|
33
|
-
export_code += export
|
34
|
-
return code, export_code
|
35
|
-
|
36
|
-
|
37
|
-
def generate_function_code(
|
38
|
-
settings: Settings,
|
39
|
-
function: Function,
|
40
|
-
force_name_in_endpoint: str = "",
|
41
|
-
kit: bool = False,
|
42
|
-
) -> Tuple[str, str]:
|
43
|
-
name = get_titles_name(function.metadata.name)
|
44
|
-
if function.spec.parameters and len(function.spec.parameters) > 0:
|
45
|
-
args_list = ", ".join(f"{param.name}: str" for param in function.spec.parameters)
|
46
|
-
args_list += ", "
|
47
|
-
else:
|
48
|
-
args_list = ""
|
49
|
-
args_schema = ""
|
50
|
-
if function.spec.parameters:
|
51
|
-
for param in function.spec.parameters:
|
52
|
-
args_schema += f'{param.name}: str = Field(description="""{param.description}""")\n '
|
53
|
-
if len(args_schema) == 0:
|
54
|
-
args_schema = "pass"
|
55
|
-
|
56
|
-
# TODO: add return direct in function configuration
|
57
|
-
return_direct = False
|
58
|
-
endpoint_name = force_name_in_endpoint or function.metadata.name
|
59
|
-
body = "{}"
|
60
|
-
if function.spec.parameters:
|
61
|
-
body = f'{", ".join(f'"{param.name}": {param.name}' for param in function.spec.parameters)}'
|
62
|
-
if kit is True:
|
63
|
-
has_name = False
|
64
|
-
if function.spec.parameters:
|
65
|
-
for param in function.spec.parameters:
|
66
|
-
if param.name == "name":
|
67
|
-
has_name = True
|
68
|
-
break
|
69
|
-
if not has_name:
|
70
|
-
if len(body) > 0:
|
71
|
-
body += ", "
|
72
|
-
body += f'"name": "{function.metadata.name}"'
|
73
|
-
return (
|
74
|
-
f'''
|
75
|
-
|
76
|
-
class Beamlit{name}Input(BaseModel):
|
77
|
-
{args_schema}
|
78
|
-
|
79
|
-
class Beamlit{name}(BaseTool):
|
80
|
-
name: str = "beamlit_{function.metadata.name.replace("-", "_")}"
|
81
|
-
description: str = """{function.spec.description}"""
|
82
|
-
args_schema: Type[BaseModel] = Beamlit{name}Input
|
83
|
-
|
84
|
-
response_format: Literal["content_and_artifact"] = "content_and_artifact"
|
85
|
-
return_direct: bool = {return_direct}
|
86
|
-
|
87
|
-
def _run(self, {args_list} run_manager: Optional[CallbackManagerForToolRun] = None) -> Tuple[Union[List[Dict[str, str]], str], Dict]:
|
88
|
-
try:
|
89
|
-
params = self.metadata.get("params", {{}})
|
90
|
-
response = run_client.run("function", "{endpoint_name}", settings.environment, "POST", json={{{body}}})
|
91
|
-
if response.status_code >= 400:
|
92
|
-
logger.error(f"Failed to run function {name}, {{response.status_code}}::{{response.text}}")
|
93
|
-
raise Exception(f"Failed to run function {name}, {{response.status_code}}::{{response.text}}")
|
94
|
-
return response.json(), {{}}
|
95
|
-
except Exception as e:
|
96
|
-
return repr(e), {{}}
|
97
|
-
''',
|
98
|
-
f"Beamlit{get_titles_name(function.metadata.name)},",
|
99
|
-
)
|
100
|
-
|
101
|
-
|
102
|
-
def generate_chain_code(settings: Settings, agent: Agent) -> Tuple[str, str]:
|
103
|
-
name = get_titles_name(agent.metadata.name)
|
104
|
-
# TODO: add return direct in agent configuration
|
105
|
-
return_direct = False
|
106
|
-
return (
|
107
|
-
f'''
|
108
|
-
class BeamlitChain{name}Input(BaseModel):
|
109
|
-
input: str = Field(description='{agent.spec.description}')
|
110
|
-
|
111
|
-
class BeamlitChain{name}(BaseTool):
|
112
|
-
name: str = "beamlit_chain_{agent.metadata.name.replace("-", "_")}"
|
113
|
-
description: str = """{agent.spec.description}"""
|
114
|
-
args_schema: Type[BaseModel] = BeamlitChain{name}Input
|
115
|
-
|
116
|
-
response_format: Literal["content_and_artifact"] = "content_and_artifact"
|
117
|
-
return_direct: bool = {return_direct}
|
118
|
-
|
119
|
-
def _run(
|
120
|
-
self,
|
121
|
-
input: str,
|
122
|
-
run_manager: Optional[CallbackManagerForToolRun] = None,
|
123
|
-
) -> Tuple[Union[List[Dict[str, str]], str], Dict]:
|
124
|
-
try:
|
125
|
-
params = self.metadata.get("params", {{}})
|
126
|
-
response = run_client.run("agent", "{agent.metadata.name}", settings.environment, "POST", json={{"input": input}})
|
127
|
-
if response.status_code >= 400:
|
128
|
-
logger.error(f"Failed to run tool {agent.metadata.name}, {{response.status_code}}::{{response.text}}")
|
129
|
-
raise Exception(f"Failed to run tool {agent.metadata.name}, {{response.status_code}}::{{response.text}}")
|
130
|
-
if response.headers.get("Content-Type") == "application/json":
|
131
|
-
return response.json(), {{}}
|
132
|
-
else:
|
133
|
-
return response.text, {{}}
|
134
|
-
except Exception as e:
|
135
|
-
return repr(e), {{}}
|
136
|
-
''',
|
137
|
-
f"BeamlitChain{name},",
|
138
|
-
)
|
139
|
-
|
140
|
-
|
141
|
-
def generate(destination: str, dry_run: bool = False):
|
142
|
-
imports = """from logging import getLogger
|
143
|
-
from typing import Dict, List, Literal, Optional, Tuple, Type, Union
|
144
|
-
|
145
|
-
from langchain_core.callbacks import CallbackManagerForToolRun
|
146
|
-
from langchain_core.tools import BaseTool
|
147
|
-
from pydantic import BaseModel, Field
|
148
|
-
from beamlit.authentication import (RunClientWithCredentials,
|
149
|
-
load_credentials_from_settings,
|
150
|
-
new_client_with_credentials)
|
151
|
-
from beamlit.common.settings import get_settings
|
152
|
-
from beamlit.run import RunClient
|
153
|
-
|
154
|
-
logger = getLogger(__name__)
|
155
|
-
settings = get_settings()
|
156
|
-
credentials = load_credentials_from_settings(settings)
|
157
|
-
|
158
|
-
client_config = RunClientWithCredentials(
|
159
|
-
credentials=credentials,
|
160
|
-
workspace=settings.workspace,
|
161
|
-
)
|
162
|
-
client = new_client_with_credentials(client_config)
|
163
|
-
run_client = RunClient(client=client)
|
164
|
-
"""
|
165
|
-
settings = get_settings()
|
166
|
-
export_code = "\n\nfunctions = ["
|
167
|
-
export_chain = "\n\nchains = ["
|
168
|
-
code = imports
|
169
|
-
if settings.agent.functions and len(settings.agent.functions) > 0:
|
170
|
-
for function_config in settings.agent.functions:
|
171
|
-
if function_config.spec.kit and len(function_config.spec.kit) > 0:
|
172
|
-
new_code, export = generate_kit_function_code(
|
173
|
-
settings, function_config, function_config.spec.kit
|
174
|
-
)
|
175
|
-
code += new_code
|
176
|
-
export_code += export
|
177
|
-
else:
|
178
|
-
new_code, export = generate_function_code(settings, function_config)
|
179
|
-
code += new_code
|
180
|
-
export_code += export
|
181
|
-
if settings.agent.chain and len(settings.agent.chain) > 0:
|
182
|
-
for agent in settings.agent.chain:
|
183
|
-
new_code, export = generate_chain_code(settings, agent)
|
184
|
-
code += new_code
|
185
|
-
export_chain += export
|
186
|
-
if settings.agent.functions and len(settings.agent.functions) > 0:
|
187
|
-
export_code = export_code[:-1]
|
188
|
-
export_code += "]"
|
189
|
-
if settings.agent.chain and len(settings.agent.chain) > 0:
|
190
|
-
export_chain = export_chain[:-1]
|
191
|
-
export_chain += "]"
|
192
|
-
content = code + export_code + export_chain
|
193
|
-
if not dry_run:
|
194
|
-
with open(destination, "w") as f:
|
195
|
-
f.write(content)
|
196
|
-
return content
|
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
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/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.33rc49 → beamlit-0.0.33rc50}/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.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/environments/create_environment.py
RENAMED
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/environments/delete_environment.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/environments/get_environment_metrics.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/environments/update_environment.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/functions/create_function_release.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/functions/get_function_environment_logs.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/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.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/integrations/get_integration_connection.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/integrations/get_integration_model.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/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.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/model_providers/create_model_provider.py
RENAMED
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/model_providers/delete_model_provider.py
RENAMED
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/model_providers/get_model_provider.py
RENAMED
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/model_providers/list_model_providers.py
RENAMED
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/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
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/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
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/privateclusters/create_private_cluster.py
RENAMED
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/privateclusters/delete_private_cluster.py
RENAMED
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/privateclusters/get_private_cluster.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/privateclusters/list_private_clusters.py
RENAMED
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/privateclusters/update_private_cluster.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
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/workspaces/accept_workspace_invitation.py
RENAMED
File without changes
|
File without changes
|
{beamlit-0.0.33rc49 → beamlit-0.0.33rc50}/src/beamlit/api/workspaces/decline_workspace_invitation.py
RENAMED
File without changes
|
File without changes
|