View Source Dagger.LLM (dagger v0.17.0)

Dagger.LLM

Summary

Functions

cache_volume(llm) deprecated

Retrieve a the current value in the LLM environment, of type CacheVolume

container(llm) deprecated

Retrieve a the current value in the LLM environment, of type Container

current_module(llm) deprecated

Retrieve a the current value in the LLM environment, of type CurrentModule

directory(llm) deprecated

Retrieve a the current value in the LLM environment, of type Directory

enum_type_def(llm) deprecated

Retrieve a the current value in the LLM environment, of type EnumTypeDef

Retrieve a the current value in the LLM environment, of type EnumValueTypeDef

error(llm) deprecated

Retrieve a the current value in the LLM environment, of type Error

error_value(llm) deprecated

Retrieve a the current value in the LLM environment, of type ErrorValue

field_type_def(llm) deprecated

Retrieve a the current value in the LLM environment, of type FieldTypeDef

file(llm) deprecated

Retrieve a the current value in the LLM environment, of type File

function(llm) deprecated

Retrieve a the current value in the LLM environment, of type Function

function_arg(llm) deprecated

Retrieve a the current value in the LLM environment, of type FunctionArg

function_call(llm) deprecated

Retrieve a the current value in the LLM environment, of type FunctionCall

Retrieve a the current value in the LLM environment, of type FunctionCallArgValue

generated_code(llm) deprecated

Retrieve a the current value in the LLM environment, of type GeneratedCode

Retrieve a variable in the llm environment, of type CacheVolume

Retrieve a variable in the llm environment, of type Container

Retrieve a variable in the llm environment, of type CurrentModule

Retrieve a variable in the llm environment, of type Directory

Retrieve a variable in the llm environment, of type EnumTypeDef

Retrieve a variable in the llm environment, of type EnumValueTypeDef

Retrieve a variable in the llm environment, of type Error

Retrieve a variable in the llm environment, of type ErrorValue

Retrieve a variable in the llm environment, of type FieldTypeDef

Retrieve a variable in the llm environment, of type File

Retrieve a variable in the llm environment, of type Function

Retrieve a variable in the llm environment, of type FunctionArg

Retrieve a variable in the llm environment, of type FunctionCall

Retrieve a variable in the llm environment, of type FunctionCallArgValue

Retrieve a variable in the llm environment, of type GeneratedCode

Retrieve a variable in the llm environment, of type GitRef

Retrieve a variable in the llm environment, of type GitRepository

Retrieve a variable in the llm environment, of type InputTypeDef

Retrieve a variable in the llm environment, of type InterfaceTypeDef

Retrieve a variable in the llm environment, of type ListTypeDef

Retrieve a variable in the llm environment, of type LLM

Retrieve a variable in the llm environment, of type Module

Retrieve a variable in the llm environment, of type ModuleConfigClient

Retrieve a variable in the llm environment, of type ModuleSource

Retrieve a variable in the llm environment, of type ObjectTypeDef

Retrieve a variable in the llm environment, of type ScalarTypeDef

Retrieve a variable in the llm environment, of type SDKConfig

Retrieve a variable in the llm environment, of type Secret

Retrieve a variable in the llm environment, of type Service

Retrieve a variable in the llm environment, of type Socket

Retrieve a variable in the llm environment, of type SourceMap

Get a string variable from the LLM's environment

Retrieve a variable in the llm environment, of type Terminal

Retrieve a variable in the llm environment, of type TypeDef

git_ref(llm) deprecated

Retrieve a the current value in the LLM environment, of type GitRef

git_repository(llm) deprecated

Retrieve a the current value in the LLM environment, of type GitRepository

return the llm message history

return the raw llm message history as json

A unique identifier for this LLM.

input_type_def(llm) deprecated

Retrieve a the current value in the LLM environment, of type InputTypeDef

Retrieve a the current value in the LLM environment, of type InterfaceTypeDef

l_lm(llm) deprecated

Retrieve a the current value in the LLM environment, of type LLM

return the last llm reply from the history

list_type_def(llm) deprecated

Retrieve a the current value in the LLM environment, of type ListTypeDef

loop(llm) deprecated

synchronize LLM state

return the model used by the llm

module(llm) deprecated

Retrieve a the current value in the LLM environment, of type Module

Retrieve a the current value in the LLM environment, of type ModuleConfigClient

module_source(llm) deprecated

Retrieve a the current value in the LLM environment, of type ModuleSource

Retrieve a the current value in the LLM environment, of type ObjectTypeDef

return the provider used by the llm

Retrieve a the current value in the LLM environment, of type ScalarTypeDef

sdkconfig(llm) deprecated

Retrieve a the current value in the LLM environment, of type SDKConfig

secret(llm) deprecated

Retrieve a the current value in the LLM environment, of type Secret

service(llm) deprecated

Retrieve a the current value in the LLM environment, of type Service

Set a variable of type CacheVolume in the llm environment

Set a variable of type Container in the llm environment

Set a variable of type CurrentModule in the llm environment

Set a variable of type Directory in the llm environment

Set a variable of type EnumTypeDef in the llm environment

Set a variable of type EnumValueTypeDef in the llm environment

Set a variable of type Error in the llm environment

Set a variable of type ErrorValue in the llm environment

Set a variable of type FieldTypeDef in the llm environment

Set a variable of type File in the llm environment

Set a variable of type Function in the llm environment

Set a variable of type FunctionArg in the llm environment

Set a variable of type FunctionCall in the llm environment

Set a variable of type FunctionCallArgValue in the llm environment

Set a variable of type GeneratedCode in the llm environment

Set a variable of type GitRef in the llm environment

Set a variable of type GitRepository in the llm environment

Set a variable of type InputTypeDef in the llm environment

Set a variable of type InterfaceTypeDef in the llm environment

Set a variable of type ListTypeDef in the llm environment

Set a variable of type LLM in the llm environment

Set a variable of type Module in the llm environment

Set a variable of type ModuleConfigClient in the llm environment

Set a variable of type ModuleSource in the llm environment

Set a variable of type ObjectTypeDef in the llm environment

Set a variable of type ScalarTypeDef in the llm environment

Set a variable of type SDKConfig in the llm environment

Set a variable of type Secret in the llm environment

Set a variable of type Service in the llm environment

Set a variable of type Socket in the llm environment

Set a variable of type SourceMap in the llm environment

Add a string variable to the LLM's environment

Set a variable of type Terminal in the llm environment

Set a variable of type TypeDef in the llm environment

socket(llm) deprecated

Retrieve a the current value in the LLM environment, of type Socket

source_map(llm) deprecated

Retrieve a the current value in the LLM environment, of type SourceMap

synchronize LLM state

terminal(llm) deprecated

Retrieve a the current value in the LLM environment, of type Terminal

print documentation for available tools

type_def(llm) deprecated

Retrieve a the current value in the LLM environment, of type TypeDef

list variables in the LLM environment

Set a variable of type CacheVolume in the llm environment

Set a variable of type Container in the llm environment

Set a variable of type CurrentModule in the llm environment

Set a variable of type Directory in the llm environment

Set a variable of type EnumTypeDef in the llm environment

Set a variable of type EnumValueTypeDef in the llm environment

Set a variable of type Error in the llm environment

Set a variable of type ErrorValue in the llm environment

Set a variable of type FieldTypeDef in the llm environment

Set a variable of type File in the llm environment

Set a variable of type Function in the llm environment

Set a variable of type FunctionArg in the llm environment

Set a variable of type FunctionCall in the llm environment

Set a variable of type FunctionCallArgValue in the llm environment

Set a variable of type GeneratedCode in the llm environment

Set a variable of type GitRef in the llm environment

Set a variable of type GitRepository in the llm environment

Set a variable of type InputTypeDef in the llm environment

Set a variable of type InterfaceTypeDef in the llm environment

Set a variable of type ListTypeDef in the llm environment

Set a variable of type LLM in the llm environment

swap out the llm model

Set a variable of type Module in the llm environment

Set a variable of type ModuleConfigClient in the llm environment

Set a variable of type ModuleSource in the llm environment

Set a variable of type ObjectTypeDef in the llm environment

append a prompt to the llm context

append the contents of a file to the llm context

Add a string variable to the LLM's environment

Set a variable of type ScalarTypeDef in the llm environment

Set a variable of type SDKConfig in the llm environment

Set a variable of type Secret in the llm environment

Set a variable of type Service in the llm environment

Set a variable of type Socket in the llm environment

Set a variable of type SourceMap in the llm environment

Set a variable of type Terminal in the llm environment

Set a variable of type TypeDef in the llm environment

Types

t()

@type t() :: %Dagger.LLM{client: term(), query_builder: term()}

Functions

cache_volume(llm)

This function is deprecated. use get<TargetType> instead.
@spec cache_volume(t()) :: Dagger.CacheVolume.t()

Retrieve a the current value in the LLM environment, of type CacheVolume

container(llm)

This function is deprecated. use get<TargetType> instead.
@spec container(t()) :: Dagger.Container.t()

Retrieve a the current value in the LLM environment, of type Container

current_module(llm)

This function is deprecated. use get<TargetType> instead.
@spec current_module(t()) :: Dagger.CurrentModule.t()

Retrieve a the current value in the LLM environment, of type CurrentModule

directory(llm)

This function is deprecated. use get<TargetType> instead.
@spec directory(t()) :: Dagger.Directory.t()

Retrieve a the current value in the LLM environment, of type Directory

enum_type_def(llm)

This function is deprecated. use get<TargetType> instead.
@spec enum_type_def(t()) :: Dagger.EnumTypeDef.t()

Retrieve a the current value in the LLM environment, of type EnumTypeDef

enum_value_type_def(llm)

This function is deprecated. use get<TargetType> instead.
@spec enum_value_type_def(t()) :: Dagger.EnumValueTypeDef.t()

Retrieve a the current value in the LLM environment, of type EnumValueTypeDef

error(llm)

This function is deprecated. use get<TargetType> instead.
@spec error(t()) :: Dagger.Error.t()

Retrieve a the current value in the LLM environment, of type Error

error_value(llm)

This function is deprecated. use get<TargetType> instead.
@spec error_value(t()) :: Dagger.ErrorValue.t()

Retrieve a the current value in the LLM environment, of type ErrorValue

field_type_def(llm)

This function is deprecated. use get<TargetType> instead.
@spec field_type_def(t()) :: Dagger.FieldTypeDef.t()

Retrieve a the current value in the LLM environment, of type FieldTypeDef

file(llm)

This function is deprecated. use get<TargetType> instead.
@spec file(t()) :: Dagger.File.t()

Retrieve a the current value in the LLM environment, of type File

function(llm)

This function is deprecated. use get<TargetType> instead.
@spec function(t()) :: Dagger.Function.t()

Retrieve a the current value in the LLM environment, of type Function

function_arg(llm)

This function is deprecated. use get<TargetType> instead.
@spec function_arg(t()) :: Dagger.FunctionArg.t()

Retrieve a the current value in the LLM environment, of type FunctionArg

function_call(llm)

This function is deprecated. use get<TargetType> instead.
@spec function_call(t()) :: Dagger.FunctionCall.t()

Retrieve a the current value in the LLM environment, of type FunctionCall

function_call_arg_value(llm)

This function is deprecated. use get<TargetType> instead.
@spec function_call_arg_value(t()) :: Dagger.FunctionCallArgValue.t()

Retrieve a the current value in the LLM environment, of type FunctionCallArgValue

generated_code(llm)

This function is deprecated. use get<TargetType> instead.
@spec generated_code(t()) :: Dagger.GeneratedCode.t()

Retrieve a the current value in the LLM environment, of type GeneratedCode

get_cache_volume(llm, name)

@spec get_cache_volume(t(), String.t()) :: Dagger.CacheVolume.t()

Retrieve a variable in the llm environment, of type CacheVolume

get_container(llm, name)

@spec get_container(t(), String.t()) :: Dagger.Container.t()

Retrieve a variable in the llm environment, of type Container

get_current_module(llm, name)

@spec get_current_module(t(), String.t()) :: Dagger.CurrentModule.t()

Retrieve a variable in the llm environment, of type CurrentModule

get_directory(llm, name)

@spec get_directory(t(), String.t()) :: Dagger.Directory.t()

Retrieve a variable in the llm environment, of type Directory

get_enum_type_def(llm, name)

@spec get_enum_type_def(t(), String.t()) :: Dagger.EnumTypeDef.t()

Retrieve a variable in the llm environment, of type EnumTypeDef

get_enum_value_type_def(llm, name)

@spec get_enum_value_type_def(t(), String.t()) :: Dagger.EnumValueTypeDef.t()

Retrieve a variable in the llm environment, of type EnumValueTypeDef

get_error(llm, name)

@spec get_error(t(), String.t()) :: Dagger.Error.t()

Retrieve a variable in the llm environment, of type Error

get_error_value(llm, name)

@spec get_error_value(t(), String.t()) :: Dagger.ErrorValue.t()

Retrieve a variable in the llm environment, of type ErrorValue

get_field_type_def(llm, name)

@spec get_field_type_def(t(), String.t()) :: Dagger.FieldTypeDef.t()

Retrieve a variable in the llm environment, of type FieldTypeDef

get_file(llm, name)

@spec get_file(t(), String.t()) :: Dagger.File.t()

Retrieve a variable in the llm environment, of type File

get_function(llm, name)

@spec get_function(t(), String.t()) :: Dagger.Function.t()

Retrieve a variable in the llm environment, of type Function

get_function_arg(llm, name)

@spec get_function_arg(t(), String.t()) :: Dagger.FunctionArg.t()

Retrieve a variable in the llm environment, of type FunctionArg

get_function_call(llm, name)

@spec get_function_call(t(), String.t()) :: Dagger.FunctionCall.t()

Retrieve a variable in the llm environment, of type FunctionCall

get_function_call_arg_value(llm, name)

@spec get_function_call_arg_value(t(), String.t()) :: Dagger.FunctionCallArgValue.t()

Retrieve a variable in the llm environment, of type FunctionCallArgValue

get_generated_code(llm, name)

@spec get_generated_code(t(), String.t()) :: Dagger.GeneratedCode.t()

Retrieve a variable in the llm environment, of type GeneratedCode

get_git_ref(llm, name)

@spec get_git_ref(t(), String.t()) :: Dagger.GitRef.t()

Retrieve a variable in the llm environment, of type GitRef

get_git_repository(llm, name)

@spec get_git_repository(t(), String.t()) :: Dagger.GitRepository.t()

Retrieve a variable in the llm environment, of type GitRepository

get_input_type_def(llm, name)

@spec get_input_type_def(t(), String.t()) :: Dagger.InputTypeDef.t()

Retrieve a variable in the llm environment, of type InputTypeDef

get_interface_type_def(llm, name)

@spec get_interface_type_def(t(), String.t()) :: Dagger.InterfaceTypeDef.t()

Retrieve a variable in the llm environment, of type InterfaceTypeDef

get_list_type_def(llm, name)

@spec get_list_type_def(t(), String.t()) :: Dagger.ListTypeDef.t()

Retrieve a variable in the llm environment, of type ListTypeDef

get_llm(llm, name)

@spec get_llm(t(), String.t()) :: t()

Retrieve a variable in the llm environment, of type LLM

get_module(llm, name)

@spec get_module(t(), String.t()) :: Dagger.Module.t()

Retrieve a variable in the llm environment, of type Module

get_module_config_client(llm, name)

@spec get_module_config_client(t(), String.t()) :: Dagger.ModuleConfigClient.t()

Retrieve a variable in the llm environment, of type ModuleConfigClient

get_module_source(llm, name)

@spec get_module_source(t(), String.t()) :: Dagger.ModuleSource.t()

Retrieve a variable in the llm environment, of type ModuleSource

get_object_type_def(llm, name)

@spec get_object_type_def(t(), String.t()) :: Dagger.ObjectTypeDef.t()

Retrieve a variable in the llm environment, of type ObjectTypeDef

get_scalar_type_def(llm, name)

@spec get_scalar_type_def(t(), String.t()) :: Dagger.ScalarTypeDef.t()

Retrieve a variable in the llm environment, of type ScalarTypeDef

get_sdk_config(llm, name)

@spec get_sdk_config(t(), String.t()) :: Dagger.SDKConfig.t() | nil

Retrieve a variable in the llm environment, of type SDKConfig

get_secret(llm, name)

@spec get_secret(t(), String.t()) :: Dagger.Secret.t()

Retrieve a variable in the llm environment, of type Secret

get_service(llm, name)

@spec get_service(t(), String.t()) :: Dagger.Service.t()

Retrieve a variable in the llm environment, of type Service

get_socket(llm, name)

@spec get_socket(t(), String.t()) :: Dagger.Socket.t()

Retrieve a variable in the llm environment, of type Socket

get_source_map(llm, name)

@spec get_source_map(t(), String.t()) :: Dagger.SourceMap.t()

Retrieve a variable in the llm environment, of type SourceMap

get_string(llm, name)

@spec get_string(t(), String.t()) :: {:ok, String.t()} | {:error, term()}

Get a string variable from the LLM's environment

get_terminal(llm, name)

@spec get_terminal(t(), String.t()) :: Dagger.Terminal.t()

Retrieve a variable in the llm environment, of type Terminal

get_type_def(llm, name)

@spec get_type_def(t(), String.t()) :: Dagger.TypeDef.t()

Retrieve a variable in the llm environment, of type TypeDef

git_ref(llm)

This function is deprecated. use get<TargetType> instead.
@spec git_ref(t()) :: Dagger.GitRef.t()

Retrieve a the current value in the LLM environment, of type GitRef

git_repository(llm)

This function is deprecated. use get<TargetType> instead.
@spec git_repository(t()) :: Dagger.GitRepository.t()

Retrieve a the current value in the LLM environment, of type GitRepository

history(llm)

@spec history(t()) :: {:ok, [String.t()]} | {:error, term()}

return the llm message history

history_json(llm)

@spec history_json(t()) :: {:ok, String.t()} | {:error, term()}

return the raw llm message history as json

id(llm)

@spec id(t()) :: {:ok, Dagger.LLMID.t()} | {:error, term()}

A unique identifier for this LLM.

input_type_def(llm)

This function is deprecated. use get<TargetType> instead.
@spec input_type_def(t()) :: Dagger.InputTypeDef.t()

Retrieve a the current value in the LLM environment, of type InputTypeDef

interface_type_def(llm)

This function is deprecated. use get<TargetType> instead.
@spec interface_type_def(t()) :: Dagger.InterfaceTypeDef.t()

Retrieve a the current value in the LLM environment, of type InterfaceTypeDef

l_lm(llm)

This function is deprecated. use get<TargetType> instead.
@spec l_lm(t()) :: t()

Retrieve a the current value in the LLM environment, of type LLM

last_reply(llm)

@spec last_reply(t()) :: {:ok, String.t()} | {:error, term()}

return the last llm reply from the history

list_type_def(llm)

This function is deprecated. use get<TargetType> instead.
@spec list_type_def(t()) :: Dagger.ListTypeDef.t()

Retrieve a the current value in the LLM environment, of type ListTypeDef

loop(llm)

This function is deprecated. use sync.
@spec loop(t()) :: t()

synchronize LLM state

model(llm)

@spec model(t()) :: {:ok, String.t()} | {:error, term()}

return the model used by the llm

module(llm)

This function is deprecated. use get<TargetType> instead.
@spec module(t()) :: Dagger.Module.t()

Retrieve a the current value in the LLM environment, of type Module

module_config_client(llm)

This function is deprecated. use get<TargetType> instead.
@spec module_config_client(t()) :: Dagger.ModuleConfigClient.t()

Retrieve a the current value in the LLM environment, of type ModuleConfigClient

module_source(llm)

This function is deprecated. use get<TargetType> instead.
@spec module_source(t()) :: Dagger.ModuleSource.t()

Retrieve a the current value in the LLM environment, of type ModuleSource

object_type_def(llm)

This function is deprecated. use get<TargetType> instead.
@spec object_type_def(t()) :: Dagger.ObjectTypeDef.t()

Retrieve a the current value in the LLM environment, of type ObjectTypeDef

provider(llm)

@spec provider(t()) :: {:ok, String.t()} | {:error, term()}

return the provider used by the llm

scalar_type_def(llm)

This function is deprecated. use get<TargetType> instead.
@spec scalar_type_def(t()) :: Dagger.ScalarTypeDef.t()

Retrieve a the current value in the LLM environment, of type ScalarTypeDef

sdkconfig(llm)

This function is deprecated. use get<TargetType> instead.
@spec sdkconfig(t()) :: Dagger.SDKConfig.t() | nil

Retrieve a the current value in the LLM environment, of type SDKConfig

secret(llm)

This function is deprecated. use get<TargetType> instead.
@spec secret(t()) :: Dagger.Secret.t()

Retrieve a the current value in the LLM environment, of type Secret

service(llm)

This function is deprecated. use get<TargetType> instead.
@spec service(t()) :: Dagger.Service.t()

Retrieve a the current value in the LLM environment, of type Service

set_cache_volume(llm, name, value)

@spec set_cache_volume(t(), String.t(), Dagger.CacheVolume.t()) :: t()

Set a variable of type CacheVolume in the llm environment

set_container(llm, name, value)

@spec set_container(t(), String.t(), Dagger.Container.t()) :: t()

Set a variable of type Container in the llm environment

set_current_module(llm, name, value)

@spec set_current_module(t(), String.t(), Dagger.CurrentModule.t()) :: t()

Set a variable of type CurrentModule in the llm environment

set_directory(llm, name, value)

@spec set_directory(t(), String.t(), Dagger.Directory.t()) :: t()

Set a variable of type Directory in the llm environment

set_enum_type_def(llm, name, value)

@spec set_enum_type_def(t(), String.t(), Dagger.EnumTypeDef.t()) :: t()

Set a variable of type EnumTypeDef in the llm environment

set_enum_value_type_def(llm, name, value)

@spec set_enum_value_type_def(t(), String.t(), Dagger.EnumValueTypeDef.t()) :: t()

Set a variable of type EnumValueTypeDef in the llm environment

set_error(llm, name, value)

@spec set_error(t(), String.t(), Dagger.Error.t()) :: t()

Set a variable of type Error in the llm environment

set_error_value(llm, name, value)

@spec set_error_value(t(), String.t(), Dagger.ErrorValue.t()) :: t()

Set a variable of type ErrorValue in the llm environment

set_field_type_def(llm, name, value)

@spec set_field_type_def(t(), String.t(), Dagger.FieldTypeDef.t()) :: t()

Set a variable of type FieldTypeDef in the llm environment

set_file(llm, name, value)

@spec set_file(t(), String.t(), Dagger.File.t()) :: t()

Set a variable of type File in the llm environment

set_function(llm, name, value)

@spec set_function(t(), String.t(), Dagger.Function.t()) :: t()

Set a variable of type Function in the llm environment

set_function_arg(llm, name, value)

@spec set_function_arg(t(), String.t(), Dagger.FunctionArg.t()) :: t()

Set a variable of type FunctionArg in the llm environment

set_function_call(llm, name, value)

@spec set_function_call(t(), String.t(), Dagger.FunctionCall.t()) :: t()

Set a variable of type FunctionCall in the llm environment

set_function_call_arg_value(llm, name, value)

@spec set_function_call_arg_value(t(), String.t(), Dagger.FunctionCallArgValue.t()) ::
  t()

Set a variable of type FunctionCallArgValue in the llm environment

set_generated_code(llm, name, value)

@spec set_generated_code(t(), String.t(), Dagger.GeneratedCode.t()) :: t()

Set a variable of type GeneratedCode in the llm environment

set_git_ref(llm, name, value)

@spec set_git_ref(t(), String.t(), Dagger.GitRef.t()) :: t()

Set a variable of type GitRef in the llm environment

set_git_repository(llm, name, value)

@spec set_git_repository(t(), String.t(), Dagger.GitRepository.t()) :: t()

Set a variable of type GitRepository in the llm environment

set_input_type_def(llm, name, value)

@spec set_input_type_def(t(), String.t(), Dagger.InputTypeDef.t()) :: t()

Set a variable of type InputTypeDef in the llm environment

set_interface_type_def(llm, name, value)

@spec set_interface_type_def(t(), String.t(), Dagger.InterfaceTypeDef.t()) :: t()

Set a variable of type InterfaceTypeDef in the llm environment

set_list_type_def(llm, name, value)

@spec set_list_type_def(t(), String.t(), Dagger.ListTypeDef.t()) :: t()

Set a variable of type ListTypeDef in the llm environment

set_llm(llm, name, value)

@spec set_llm(t(), String.t(), t()) :: t()

Set a variable of type LLM in the llm environment

set_module(llm, name, value)

@spec set_module(t(), String.t(), Dagger.Module.t()) :: t()

Set a variable of type Module in the llm environment

set_module_config_client(llm, name, value)

@spec set_module_config_client(t(), String.t(), Dagger.ModuleConfigClient.t()) :: t()

Set a variable of type ModuleConfigClient in the llm environment

set_module_source(llm, name, value)

@spec set_module_source(t(), String.t(), Dagger.ModuleSource.t()) :: t()

Set a variable of type ModuleSource in the llm environment

set_object_type_def(llm, name, value)

@spec set_object_type_def(t(), String.t(), Dagger.ObjectTypeDef.t()) :: t()

Set a variable of type ObjectTypeDef in the llm environment

set_scalar_type_def(llm, name, value)

@spec set_scalar_type_def(t(), String.t(), Dagger.ScalarTypeDef.t()) :: t()

Set a variable of type ScalarTypeDef in the llm environment

set_sdk_config(llm, name, value)

@spec set_sdk_config(t(), String.t(), Dagger.SDKConfig.t()) :: t()

Set a variable of type SDKConfig in the llm environment

set_secret(llm, name, value)

@spec set_secret(t(), String.t(), Dagger.Secret.t()) :: t()

Set a variable of type Secret in the llm environment

set_service(llm, name, value)

@spec set_service(t(), String.t(), Dagger.Service.t()) :: t()

Set a variable of type Service in the llm environment

set_socket(llm, name, value)

@spec set_socket(t(), String.t(), Dagger.Socket.t()) :: t()

Set a variable of type Socket in the llm environment

set_source_map(llm, name, value)

@spec set_source_map(t(), String.t(), Dagger.SourceMap.t()) :: t()

Set a variable of type SourceMap in the llm environment

set_string(llm, name, value)

@spec set_string(t(), String.t(), String.t()) :: t()

Add a string variable to the LLM's environment

set_terminal(llm, name, value)

@spec set_terminal(t(), String.t(), Dagger.Terminal.t()) :: t()

Set a variable of type Terminal in the llm environment

set_type_def(llm, name, value)

@spec set_type_def(t(), String.t(), Dagger.TypeDef.t()) :: t()

Set a variable of type TypeDef in the llm environment

socket(llm)

This function is deprecated. use get<TargetType> instead.
@spec socket(t()) :: Dagger.Socket.t()

Retrieve a the current value in the LLM environment, of type Socket

source_map(llm)

This function is deprecated. use get<TargetType> instead.
@spec source_map(t()) :: Dagger.SourceMap.t()

Retrieve a the current value in the LLM environment, of type SourceMap

sync(llm)

@spec sync(t()) :: {:ok, t()} | {:error, term()}

synchronize LLM state

terminal(llm)

This function is deprecated. use get<TargetType> instead.
@spec terminal(t()) :: Dagger.Terminal.t()

Retrieve a the current value in the LLM environment, of type Terminal

tools(llm)

@spec tools(t()) :: {:ok, String.t()} | {:error, term()}

print documentation for available tools

type_def(llm)

This function is deprecated. use get<TargetType> instead.
@spec type_def(t()) :: Dagger.TypeDef.t()

Retrieve a the current value in the LLM environment, of type TypeDef

variables(llm)

@spec variables(t()) :: {:ok, [Dagger.LLMVariable.t()]} | {:error, term()}

list variables in the LLM environment

with_cache_volume(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_cache_volume(t(), Dagger.CacheVolume.t()) :: t()

Set a variable of type CacheVolume in the llm environment

with_container(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_container(t(), Dagger.Container.t()) :: t()

Set a variable of type Container in the llm environment

with_current_module(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_current_module(t(), Dagger.CurrentModule.t()) :: t()

Set a variable of type CurrentModule in the llm environment

with_directory(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_directory(t(), Dagger.Directory.t()) :: t()

Set a variable of type Directory in the llm environment

with_enum_type_def(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_enum_type_def(t(), Dagger.EnumTypeDef.t()) :: t()

Set a variable of type EnumTypeDef in the llm environment

with_enum_value_type_def(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_enum_value_type_def(t(), Dagger.EnumValueTypeDef.t()) :: t()

Set a variable of type EnumValueTypeDef in the llm environment

with_error(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_error(t(), Dagger.Error.t()) :: t()

Set a variable of type Error in the llm environment

with_error_value(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_error_value(t(), Dagger.ErrorValue.t()) :: t()

Set a variable of type ErrorValue in the llm environment

with_field_type_def(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_field_type_def(t(), Dagger.FieldTypeDef.t()) :: t()

Set a variable of type FieldTypeDef in the llm environment

with_file(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_file(t(), Dagger.File.t()) :: t()

Set a variable of type File in the llm environment

with_function(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_function(t(), Dagger.Function.t()) :: t()

Set a variable of type Function in the llm environment

with_function_arg(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_function_arg(t(), Dagger.FunctionArg.t()) :: t()

Set a variable of type FunctionArg in the llm environment

with_function_call(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_function_call(t(), Dagger.FunctionCall.t()) :: t()

Set a variable of type FunctionCall in the llm environment

with_function_call_arg_value(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_function_call_arg_value(t(), Dagger.FunctionCallArgValue.t()) :: t()

Set a variable of type FunctionCallArgValue in the llm environment

with_generated_code(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_generated_code(t(), Dagger.GeneratedCode.t()) :: t()

Set a variable of type GeneratedCode in the llm environment

with_git_ref(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_git_ref(t(), Dagger.GitRef.t()) :: t()

Set a variable of type GitRef in the llm environment

with_git_repository(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_git_repository(t(), Dagger.GitRepository.t()) :: t()

Set a variable of type GitRepository in the llm environment

with_input_type_def(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_input_type_def(t(), Dagger.InputTypeDef.t()) :: t()

Set a variable of type InputTypeDef in the llm environment

with_interface_type_def(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_interface_type_def(t(), Dagger.InterfaceTypeDef.t()) :: t()

Set a variable of type InterfaceTypeDef in the llm environment

with_list_type_def(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_list_type_def(t(), Dagger.ListTypeDef.t()) :: t()

Set a variable of type ListTypeDef in the llm environment

with_llm(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_llm(t(), t()) :: t()

Set a variable of type LLM in the llm environment

with_model(llm, model)

@spec with_model(t(), String.t()) :: t()

swap out the llm model

with_module(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_module(t(), Dagger.Module.t()) :: t()

Set a variable of type Module in the llm environment

with_module_config_client(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_module_config_client(t(), Dagger.ModuleConfigClient.t()) :: t()

Set a variable of type ModuleConfigClient in the llm environment

with_module_source(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_module_source(t(), Dagger.ModuleSource.t()) :: t()

Set a variable of type ModuleSource in the llm environment

with_object_type_def(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_object_type_def(t(), Dagger.ObjectTypeDef.t()) :: t()

Set a variable of type ObjectTypeDef in the llm environment

with_prompt(llm, prompt)

@spec with_prompt(t(), String.t()) :: t()

append a prompt to the llm context

with_prompt_file(llm, file)

@spec with_prompt_file(t(), Dagger.File.t()) :: t()

append the contents of a file to the llm context

with_prompt_var(llm, name, value)

@spec with_prompt_var(t(), String.t(), String.t()) :: t()

Add a string variable to the LLM's environment

with_scalar_type_def(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_scalar_type_def(t(), Dagger.ScalarTypeDef.t()) :: t()

Set a variable of type ScalarTypeDef in the llm environment

with_sdk_config(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_sdk_config(t(), Dagger.SDKConfig.t()) :: t()

Set a variable of type SDKConfig in the llm environment

with_secret(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_secret(t(), Dagger.Secret.t()) :: t()

Set a variable of type Secret in the llm environment

with_service(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_service(t(), Dagger.Service.t()) :: t()

Set a variable of type Service in the llm environment

with_socket(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_socket(t(), Dagger.Socket.t()) :: t()

Set a variable of type Socket in the llm environment

with_source_map(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_source_map(t(), Dagger.SourceMap.t()) :: t()

Set a variable of type SourceMap in the llm environment

with_terminal(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_terminal(t(), Dagger.Terminal.t()) :: t()

Set a variable of type Terminal in the llm environment

with_type_def(llm, value)

This function is deprecated. use set<TargetType> instead.
@spec with_type_def(t(), Dagger.TypeDef.t()) :: t()

Set a variable of type TypeDef in the llm environment