LettaAPI.Api.SandboxConfig (letta_api v1.0.0)

API calls for all endpoints tagged SandboxConfig.

Summary

Functions

Create Custom Local Sandbox Config Create or update a custom LocalSandboxConfig, including pip_requirements.

Force Recreate Local Sandbox Venv Forcefully recreate the virtual environment for the local sandbox. Deletes and recreates the venv, then reinstalls required dependencies.

Functions

create_custom_local_sandbox_config_v1_sandbox_config_local_post(connection, local_sandbox_config, opts \\ [])

@spec create_custom_local_sandbox_config_v1_sandbox_config_local_post(
  Tesla.Env.client(),
  LettaAPI.Model.LocalSandboxConfig.t(),
  keyword()
) ::
  {:ok, LettaAPI.Model.SandboxConfig.t()}
  | {:ok, LettaAPI.Model.HttpValidationError.t()}
  | {:error, Tesla.Env.t()}

Create Custom Local Sandbox Config Create or update a custom LocalSandboxConfig, including pip_requirements.

Parameters

  • connection (LettaAPI.Connection): Connection to server
  • local_sandbox_config (LocalSandboxConfig):
  • opts (keyword): Optional parameters
    • :"user-id" (String.t):

Returns

  • {:ok, LettaAPI.Model.SandboxConfig.t} on success
  • {:error, Tesla.Env.t} on failure

create_default_e2b_sandbox_config_v1_sandbox_config_e2b_default_post(connection, opts \\ [])

@spec create_default_e2b_sandbox_config_v1_sandbox_config_e2b_default_post(
  Tesla.Env.client(),
  keyword()
) ::
  {:ok, LettaAPI.Model.SandboxConfig.t()}
  | {:ok, LettaAPI.Model.HttpValidationError.t()}
  | {:error, Tesla.Env.t()}

Create Default E2B Sandbox Config

Parameters

  • connection (LettaAPI.Connection): Connection to server
  • opts (keyword): Optional parameters
    • :"user-id" (String.t):

Returns

  • {:ok, LettaAPI.Model.SandboxConfig.t} on success
  • {:error, Tesla.Env.t} on failure

create_default_local_sandbox_config_v1_sandbox_config_local_default_post(connection, opts \\ [])

@spec create_default_local_sandbox_config_v1_sandbox_config_local_default_post(
  Tesla.Env.client(),
  keyword()
) ::
  {:ok, LettaAPI.Model.SandboxConfig.t()}
  | {:ok, LettaAPI.Model.HttpValidationError.t()}
  | {:error, Tesla.Env.t()}

Create Default Local Sandbox Config

Parameters

  • connection (LettaAPI.Connection): Connection to server
  • opts (keyword): Optional parameters
    • :"user-id" (String.t):

Returns

  • {:ok, LettaAPI.Model.SandboxConfig.t} on success
  • {:error, Tesla.Env.t} on failure

create_sandbox_config_v1_sandbox_config_post(connection, sandbox_config_create, opts \\ [])

@spec create_sandbox_config_v1_sandbox_config_post(
  Tesla.Env.client(),
  LettaAPI.Model.SandboxConfigCreate.t(),
  keyword()
) ::
  {:ok, LettaAPI.Model.SandboxConfig.t()}
  | {:ok, LettaAPI.Model.HttpValidationError.t()}
  | {:error, Tesla.Env.t()}

Create Sandbox Config

Parameters

  • connection (LettaAPI.Connection): Connection to server
  • sandbox_config_create (SandboxConfigCreate):
  • opts (keyword): Optional parameters
    • :"user-id" (String.t):

Returns

  • {:ok, LettaAPI.Model.SandboxConfig.t} on success
  • {:error, Tesla.Env.t} on failure

create_sandbox_env_var_v1_sandbox_config_sandbox_config_id_environment_variable_post(connection, sandbox_config_id, sandbox_environment_variable_create, opts \\ [])

@spec create_sandbox_env_var_v1_sandbox_config_sandbox_config_id_environment_variable_post(
  Tesla.Env.client(),
  String.t(),
  LettaAPI.Model.SandboxEnvironmentVariableCreate.t(),
  keyword()
) ::
  {:ok, LettaAPI.Model.SandboxEnvironmentVariable.t()}
  | {:ok, LettaAPI.Model.HttpValidationError.t()}
  | {:error, Tesla.Env.t()}

Create Sandbox Env Var

Parameters

  • connection (LettaAPI.Connection): Connection to server
  • sandbox_config_id (String.t):
  • sandbox_environment_variable_create (SandboxEnvironmentVariableCreate):
  • opts (keyword): Optional parameters
    • :"user-id" (String.t):

Returns

  • {:ok, LettaAPI.Model.SandboxEnvironmentVariable.t} on success
  • {:error, Tesla.Env.t} on failure

delete_sandbox_config_v1_sandbox_config_sandbox_config_id_delete(connection, sandbox_config_id, opts \\ [])

@spec delete_sandbox_config_v1_sandbox_config_sandbox_config_id_delete(
  Tesla.Env.client(),
  String.t(),
  keyword()
) ::
  {:ok, nil}
  | {:ok, LettaAPI.Model.HttpValidationError.t()}
  | {:error, Tesla.Env.t()}

Delete Sandbox Config

Parameters

  • connection (LettaAPI.Connection): Connection to server
  • sandbox_config_id (String.t):
  • opts (keyword): Optional parameters
    • :"user-id" (String.t):

Returns

  • {:ok, nil} on success
  • {:error, Tesla.Env.t} on failure

delete_sandbox_env_var_v1_sandbox_config_environment_variable_env_var_id_delete(connection, env_var_id, opts \\ [])

@spec delete_sandbox_env_var_v1_sandbox_config_environment_variable_env_var_id_delete(
  Tesla.Env.client(),
  String.t(),
  keyword()
) ::
  {:ok, nil}
  | {:ok, LettaAPI.Model.HttpValidationError.t()}
  | {:error, Tesla.Env.t()}

Delete Sandbox Env Var

Parameters

  • connection (LettaAPI.Connection): Connection to server
  • env_var_id (String.t):
  • opts (keyword): Optional parameters
    • :"user-id" (String.t):

Returns

  • {:ok, nil} on success
  • {:error, Tesla.Env.t} on failure

force_recreate_local_sandbox_venv_v1_sandbox_config_local_recreate_venv_post(connection, opts \\ [])

@spec force_recreate_local_sandbox_venv_v1_sandbox_config_local_recreate_venv_post(
  Tesla.Env.client(),
  keyword()
) ::
  {:ok, LettaAPI.Model.SandboxConfig.t()}
  | {:ok, LettaAPI.Model.HttpValidationError.t()}
  | {:error, Tesla.Env.t()}

Force Recreate Local Sandbox Venv Forcefully recreate the virtual environment for the local sandbox. Deletes and recreates the venv, then reinstalls required dependencies.

Parameters

  • connection (LettaAPI.Connection): Connection to server
  • opts (keyword): Optional parameters
    • :"user-id" (String.t):

Returns

  • {:ok, LettaAPI.Model.SandboxConfig.t} on success
  • {:error, Tesla.Env.t} on failure

list_sandbox_configs_v1_sandbox_config_get(connection, opts \\ [])

@spec list_sandbox_configs_v1_sandbox_config_get(
  Tesla.Env.client(),
  keyword()
) ::
  {:ok, [LettaAPI.Model.SandboxConfig.t()]}
  | {:ok, LettaAPI.Model.HttpValidationError.t()}
  | {:error, Tesla.Env.t()}

List Sandbox Configs

Parameters

  • connection (LettaAPI.Connection): Connection to server
  • opts (keyword): Optional parameters
    • :limit (integer()): Number of results to return
    • :after (String.t): Pagination cursor to fetch the next set of results
    • :sandbox_type (SandboxType): Filter for this specific sandbox type
    • :"user-id" (String.t):

Returns

  • {:ok, [%SandboxConfig{}, ...]} on success
  • {:error, Tesla.Env.t} on failure

list_sandbox_env_vars_v1_sandbox_config_sandbox_config_id_environment_variable_get(connection, sandbox_config_id, opts \\ [])

@spec list_sandbox_env_vars_v1_sandbox_config_sandbox_config_id_environment_variable_get(
  Tesla.Env.client(),
  String.t(),
  keyword()
) ::
  {:ok, [LettaAPI.Model.SandboxEnvironmentVariable.t()]}
  | {:ok, LettaAPI.Model.HttpValidationError.t()}
  | {:error, Tesla.Env.t()}

List Sandbox Env Vars

Parameters

  • connection (LettaAPI.Connection): Connection to server
  • sandbox_config_id (String.t):
  • opts (keyword): Optional parameters
    • :limit (integer()): Number of results to return
    • :after (String.t): Pagination cursor to fetch the next set of results
    • :"user-id" (String.t):

Returns

  • {:ok, [%SandboxEnvironmentVariable{}, ...]} on success
  • {:error, Tesla.Env.t} on failure

update_sandbox_config_v1_sandbox_config_sandbox_config_id_patch(connection, sandbox_config_id, sandbox_config_update, opts \\ [])

@spec update_sandbox_config_v1_sandbox_config_sandbox_config_id_patch(
  Tesla.Env.client(),
  String.t(),
  LettaAPI.Model.SandboxConfigUpdate.t(),
  keyword()
) ::
  {:ok, LettaAPI.Model.SandboxConfig.t()}
  | {:ok, LettaAPI.Model.HttpValidationError.t()}
  | {:error, Tesla.Env.t()}

Update Sandbox Config

Parameters

  • connection (LettaAPI.Connection): Connection to server
  • sandbox_config_id (String.t):
  • sandbox_config_update (SandboxConfigUpdate):
  • opts (keyword): Optional parameters
    • :"user-id" (String.t):

Returns

  • {:ok, LettaAPI.Model.SandboxConfig.t} on success
  • {:error, Tesla.Env.t} on failure

update_sandbox_env_var_v1_sandbox_config_environment_variable_env_var_id_patch(connection, env_var_id, sandbox_environment_variable_update, opts \\ [])

@spec update_sandbox_env_var_v1_sandbox_config_environment_variable_env_var_id_patch(
  Tesla.Env.client(),
  String.t(),
  LettaAPI.Model.SandboxEnvironmentVariableUpdate.t(),
  keyword()
) ::
  {:ok, LettaAPI.Model.SandboxEnvironmentVariable.t()}
  | {:ok, LettaAPI.Model.HttpValidationError.t()}
  | {:error, Tesla.Env.t()}

Update Sandbox Env Var

Parameters

  • connection (LettaAPI.Connection): Connection to server
  • env_var_id (String.t):
  • sandbox_environment_variable_update (SandboxEnvironmentVariableUpdate):
  • opts (keyword): Optional parameters
    • :"user-id" (String.t):

Returns

  • {:ok, LettaAPI.Model.SandboxEnvironmentVariable.t} on success
  • {:error, Tesla.Env.t} on failure