mason-llm
No long description provided.
Installation
dagger install github.com/vbehar/mason-modules/mason-llm@v0.0.5Entrypoint
Return Type
MasonLlm Example
dagger -m github.com/vbehar/mason-modules/mason-llm@4c9ae664f9594d09742fc8213a08bc2953902b80 call \
func (m *MyModule) Example() *dagger.MasonLlm {
return dag.
MasonLlm()
}@function
def example() -> dagger.MasonLlm:
return (
dag.mason_llm()
)@func()
example(): MasonLlm {
return dag
.masonLlm()
}Types
MasonLlm 🔗
renderPlan() 🔗
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| blueprint | Directory ! | - | No description provided |
Example
dagger -m github.com/vbehar/mason-modules/mason-llm@4c9ae664f9594d09742fc8213a08bc2953902b80 call \
render-plan --blueprint DIR_PATHfunc (m *MyModule) Example(blueprint *dagger.Directory) *dagger.Directory {
return dag.
MasonLlm().
RenderPlan(blueprint)
}@function
def example(blueprint: dagger.Directory) -> dagger.Directory:
return (
dag.mason_llm()
.render_plan(blueprint)
)@func()
example(blueprint: Directory): Directory {
return dag
.masonLlm()
.renderPlan(blueprint)
}reviewCode() 🔗
Return Type
MasonLlmLlmResult !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| workspace | Directory ! | - | No description provided |
| gitDiff | File | - | No description provided |
| gitInfo | File | - | No description provided |
| env | Env | - | No description provided |
| llm | LLM | - | No description provided |
| additionalInstructions | String | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(workspace *dagger.Directory) *dagger.MasonLlmLlmResult {
return dag.
MasonLlm().
ReviewCode(workspace)
}@function
def example(workspace: dagger.Directory) -> dagger.MasonLlmLlmResult:
return (
dag.mason_llm()
.review_code(workspace)
)@func()
example(workspace: Directory): MasonLlmLlmResult {
return dag
.masonLlm()
.reviewCode(workspace)
}debugPipeline() 🔗
Return Type
MasonLlmLlmResult !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| workspace | Directory ! | - | No description provided |
| logFilePath | String ! | - | No description provided |
| gitDiff | File | - | No description provided |
| gitInfo | File | - | No description provided |
| env | Env | - | No description provided |
| llm | LLM | - | No description provided |
| additionalInstructions | String | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(workspace *dagger.Directory, logFilePath string) *dagger.MasonLlmLlmResult {
return dag.
MasonLlm().
DebugPipeline(workspace, logFilePath)
}@function
def example(workspace: dagger.Directory, log_file_path: str) -> dagger.MasonLlmLlmResult:
return (
dag.mason_llm()
.debug_pipeline(workspace, log_file_path)
)@func()
example(workspace: Directory, logFilePath: string): MasonLlmLlmResult {
return dag
.masonLlm()
.debugPipeline(workspace, logFilePath)
}MasonLlmLlmResult 🔗
llm() 🔗
Return Type
LLM ! Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(workspace *dagger.Directory, logFilePath string) *dagger.LLM {
return dag.
MasonLlm().
DebugPipeline(workspace, logFilePath).
Llm()
}@function
def example(workspace: dagger.Directory, log_file_path: str) -> dagger.LLM:
return (
dag.mason_llm()
.debug_pipeline(workspace, log_file_path)
.llm()
)@func()
example(workspace: Directory, logFilePath: string): LLM {
return dag
.masonLlm()
.debugPipeline(workspace, logFilePath)
.llm()
}result() 🔗
Return Type
String ! Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(ctx context.Context, workspace *dagger.Directory, logFilePath string) string {
return dag.
MasonLlm().
DebugPipeline(workspace, logFilePath).
Result(ctx)
}@function
async def example(workspace: dagger.Directory, log_file_path: str) -> str:
return await (
dag.mason_llm()
.debug_pipeline(workspace, log_file_path)
.result()
)@func()
async example(workspace: Directory, logFilePath: string): Promise<string> {
return dag
.masonLlm()
.debugPipeline(workspace, logFilePath)
.result()
}resultFile() 🔗
Return Type
File ! Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(workspace *dagger.Directory, logFilePath string) *dagger.File {
return dag.
MasonLlm().
DebugPipeline(workspace, logFilePath).
ResultFile()
}@function
def example(workspace: dagger.Directory, log_file_path: str) -> dagger.File:
return (
dag.mason_llm()
.debug_pipeline(workspace, log_file_path)
.result_file()
)@func()
example(workspace: Directory, logFilePath: string): File {
return dag
.masonLlm()
.debugPipeline(workspace, logFilePath)
.resultFile()
}providerInfo() 🔗
Return Type
String ! Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(ctx context.Context, workspace *dagger.Directory, logFilePath string) string {
return dag.
MasonLlm().
DebugPipeline(workspace, logFilePath).
ProviderInfo(ctx)
}@function
async def example(workspace: dagger.Directory, log_file_path: str) -> str:
return await (
dag.mason_llm()
.debug_pipeline(workspace, log_file_path)
.provider_info()
)@func()
async example(workspace: Directory, logFilePath: string): Promise<string> {
return dag
.masonLlm()
.debugPipeline(workspace, logFilePath)
.providerInfo()
}tokensInfo() 🔗
Return Type
String ! Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(ctx context.Context, workspace *dagger.Directory, logFilePath string) string {
return dag.
MasonLlm().
DebugPipeline(workspace, logFilePath).
TokensInfo(ctx)
}@function
async def example(workspace: dagger.Directory, log_file_path: str) -> str:
return await (
dag.mason_llm()
.debug_pipeline(workspace, log_file_path)
.tokens_info()
)@func()
async example(workspace: Directory, logFilePath: string): Promise<string> {
return dag
.masonLlm()
.debugPipeline(workspace, logFilePath)
.tokensInfo()
}