mason-llm
No long description provided.
Installation
dagger install github.com/vbehar/mason-modules/mason-llm@v0.0.3
Entrypoint
Return Type
MasonLlm
Example
dagger -m github.com/vbehar/mason-modules/mason-llm@a8a66cb6aeea8f186b340d2f5799b31bc5cd6b8e 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 🔗
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)
}
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)
}
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@a8a66cb6aeea8f186b340d2f5799b31bc5cd6b8e call \
render-plan --blueprint DIR_PATH
func (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)
}
MasonLlmLlmResult 🔗
llm() 🔗
Return Type
LLM !
Example
echo 'Custom types are not supported in shell examples'
func (m *MyModule) Example(workspace *dagger.Directory) *dagger.LLM {
return dag.
MasonLlm().
ReviewCode(workspace).
Llm()
}
@function
def example(workspace: dagger.Directory) -> dagger.LLM:
return (
dag.mason_llm()
.review_code(workspace)
.llm()
)
@func()
example(workspace: Directory): LLM {
return dag
.masonLlm()
.reviewCode(workspace)
.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) string {
return dag.
MasonLlm().
ReviewCode(workspace).
Result(ctx)
}
@function
async def example(workspace: dagger.Directory) -> str:
return await (
dag.mason_llm()
.review_code(workspace)
.result()
)
@func()
async example(workspace: Directory): Promise<string> {
return dag
.masonLlm()
.reviewCode(workspace)
.result()
}
resultFile() 🔗
Return Type
File !
Example
echo 'Custom types are not supported in shell examples'
func (m *MyModule) Example(workspace *dagger.Directory) *dagger.File {
return dag.
MasonLlm().
ReviewCode(workspace).
ResultFile()
}
@function
def example(workspace: dagger.Directory) -> dagger.File:
return (
dag.mason_llm()
.review_code(workspace)
.result_file()
)
@func()
example(workspace: Directory): File {
return dag
.masonLlm()
.reviewCode(workspace)
.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) string {
return dag.
MasonLlm().
ReviewCode(workspace).
ProviderInfo(ctx)
}
@function
async def example(workspace: dagger.Directory) -> str:
return await (
dag.mason_llm()
.review_code(workspace)
.provider_info()
)
@func()
async example(workspace: Directory): Promise<string> {
return dag
.masonLlm()
.reviewCode(workspace)
.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) string {
return dag.
MasonLlm().
ReviewCode(workspace).
TokensInfo(ctx)
}
@function
async def example(workspace: dagger.Directory) -> str:
return await (
dag.mason_llm()
.review_code(workspace)
.tokens_info()
)
@func()
async example(workspace: Directory): Promise<string> {
return dag
.masonLlm()
.reviewCode(workspace)
.tokensInfo()
}