daggy
It is powered by OpenAI and GPTScriptInstallation
dagger install github.com/shykes/x/daggy@b6da9888ed078e1573e9561b936dd1e5244f0a9f
Entrypoint
Return Type
Daggy
Example
dagger -m github.com/shykes/x/daggy@b6da9888ed078e1573e9561b936dd1e5244f0a9f call \
func (m *myModule) example() *Daggy {
return dag.
Daggy()
}
@function
def example() -> dag.Daggy:
return (
dag.daggy()
)
@func()
example(): Daggy {
return dag
.daggy()
}
Types
Daggy 🔗
Daggy is an AI agent that knows how to call Dagger functions. It is powered by OpenAI and GPTScript
do() 🔗
Tell Daggy to do something
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
prompt | String ! | - | A prompt telling Daggy what to do |
token | Secret | - | OpenAI API key |
base | Container | - | Custom base container |
Example
dagger -m github.com/shykes/x/daggy@b6da9888ed078e1573e9561b936dd1e5244f0a9f call \
do --prompt string
func (m *myModule) example(ctx context.Context, prompt string) string {
return dag.
Daggy().
Do(ctx, prompt)
}
@function
async def example(prompt: str) -> str:
return await (
dag.daggy()
.do(prompt)
)
@func()
async example(prompt: string): Promise<string> {
return dag
.daggy()
.do(prompt)
}
server() 🔗
Run the gptscript server NOTE: this does not work currently. Help wanted :)
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
token | Secret ! | - | OpenAI API key |
base | Container | - | Custom base container |
Example
dagger -m github.com/shykes/x/daggy@b6da9888ed078e1573e9561b936dd1e5244f0a9f call \
server --token env:MYSECRET
func (m *myModule) example(token *Secret) *Service {
return dag.
Daggy().
Server(token)
}
@function
def example(token: dagger.Secret) -> dagger.Service:
return (
dag.daggy()
.server(token)
)
@func()
example(token: Secret): Service {
return dag
.daggy()
.server(token)
}
debug() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
token | Secret | - | OpenAI API key |
base | Container | - | Custom base container |
Example
dagger -m github.com/shykes/x/daggy@b6da9888ed078e1573e9561b936dd1e5244f0a9f call \
debug
func (m *myModule) example() *Container {
return dag.
Daggy().
Debug()
}
@function
def example() -> dagger.Container:
return (
dag.daggy()
.debug()
)
@func()
example(): Container {
return dag
.daggy()
.debug()
}
container() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
token | Secret | - | OpenAI API token |
base | Container | - | Custom base container |
Example
dagger -m github.com/shykes/x/daggy@b6da9888ed078e1573e9561b936dd1e5244f0a9f call \
container
func (m *myModule) example() *Container {
return dag.
Daggy().
Container()
}
@function
def example() -> dagger.Container:
return (
dag.daggy()
.container()
)
@func()
example(): Container {
return dag
.daggy()
.container()
}