Dagger.LLM (dagger v0.18.2)
View SourceDagger.LLM
Summary
Functions
create a branch in the LLM's history
returns the type of the current state
return the LLM's current environment
return the llm message history
return the raw llm message history as json
A unique identifier for this LLM.
return the last llm reply from the history
synchronize LLM state
return the model used by the llm
return the provider used by the llm
synchronize LLM state
returns the token usage of the current state
print documentation for available tools
allow the LLM to interact with an environment via MCP
swap out the llm model
append a prompt to the llm context
append the contents of a file to the llm context
Add a system prompt to the LLM's environment
Types
Functions
create a branch in the LLM's history
@spec bind_result(t(), String.t()) :: Dagger.Binding.t() | nil
returns the type of the current state
@spec env(t()) :: Dagger.Env.t()
return the LLM's current environment
return the llm message history
return the raw llm message history as json
@spec id(t()) :: {:ok, Dagger.LLMID.t()} | {:error, term()}
A unique identifier for this LLM.
return the last llm reply from the history
synchronize LLM state
return the model used by the llm
return the provider used by the llm
synchronize LLM state
@spec token_usage(t()) :: Dagger.LLMTokenUsage.t()
returns the token usage of the current state
print documentation for available tools
@spec with_env(t(), Dagger.Env.t()) :: t()
allow the LLM to interact with an environment via MCP
swap out the llm model
append a prompt to the llm context
@spec with_prompt_file(t(), Dagger.File.t()) :: t()
append the contents of a file to the llm context
Add a system prompt to the LLM's environment