helix
This module lets you call LLM inference on open source models in Helix.mlFor more info, see https://helixml.substack.com/p/introducing-the-helix-cli-and-dagger
Installation
dagger install github.com/helixml/dagger@v0.1.1
Entrypoint
Return Type
Helix
Example
dagger -m github.com/helixml/dagger@3489fff4a3f7852ee1f7e4c978b343fb5ff87fd8 call \
func (m *myModule) example() *Helix {
return dag.
Helix()
}
@function
def example() -> dag.Helix:
return (
dag.helix()
)
@func()
example(): Helix {
return dag
.helix()
}
Types
Helix 🔗
getSecret() 🔗
example usage: “dagger call get-secret –helix-credentials ~/.helix/credentials”
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
helixCredentials | File ! | - | No description provided |
Example
dagger -m github.com/helixml/dagger@3489fff4a3f7852ee1f7e4c978b343fb5ff87fd8 call \
get-secret --helix-credentials file:path
func (m *myModule) example(ctx context.Context, helixCredentials *File) string {
return dag.
Helix().
GetSecret(ctx, helixCredentials)
}
@function
async def example(helix_credentials: dagger.File) -> str:
return await (
dag.helix()
.get_secret(helix_credentials)
)
@func()
async example(helixCredentials: File): Promise<string> {
return dag
.helix()
.getSecret(helixCredentials)
}
withHelixSecret() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
ctr | Container ! | - | No description provided |
helixCredentials | File ! | - | No description provided |
Example
dagger -m github.com/helixml/dagger@3489fff4a3f7852ee1f7e4c978b343fb5ff87fd8 call \
with-helix-secret --ctr IMAGE:TAG --helix-credentials file:path
func (m *myModule) example(ctr *Container, helixCredentials *File) *Container {
return dag.
Helix().
WithHelixSecret(ctr, helixCredentials)
}
@function
def example(ctr: dagger.Container, helix_credentials: dagger.File) -> dagger.Container:
return (
dag.helix()
.with_helix_secret(ctr, helix_credentials)
)
@func()
example(ctr: Container, helixCredentials: File): Container {
return dag
.helix()
.withHelixSecret(ctr, helixCredentials)
}
helixCli() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
helixCredentials | File ! | - | No description provided |
Example
dagger -m github.com/helixml/dagger@3489fff4a3f7852ee1f7e4c978b343fb5ff87fd8 call \
helix-cli --helix-credentials file:path
func (m *myModule) example(helixCredentials *File) *Container {
return dag.
Helix().
HelixCli(helixCredentials)
}
@function
def example(helix_credentials: dagger.File) -> dagger.Container:
return (
dag.helix()
.helix_cli(helix_credentials)
)
@func()
example(helixCredentials: File): Container {
return dag
.helix()
.helixCli(helixCredentials)
}
run() 🔗
example usage: “dagger call run –helix-credentials ~/.helix/credentials –prompt hi”
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
prompt | String ! | - | No description provided |
helixCredentials | File ! | - | No description provided |
Example
dagger -m github.com/helixml/dagger@3489fff4a3f7852ee1f7e4c978b343fb5ff87fd8 call \
run --prompt string --helix-credentials file:path
func (m *myModule) example(ctx context.Context, prompt string, helixCredentials *File) string {
return dag.
Helix().
Run(ctx, prompt, helixCredentials)
}
@function
async def example(prompt: str, helix_credentials: dagger.File) -> str:
return await (
dag.helix()
.run(prompt, helix_credentials)
)
@func()
async example(prompt: string, helixCredentials: File): Promise<string> {
return dag
.helix()
.run(prompt, helixCredentials)
}