daggy
It is powered by OpenAI and GPTScriptInstallation
dagger install github.com/shykes/x/daggy@755259c418d259f0f4b44d1808815e75392da898
Entrypoint
Return Type
Daggy
Example
dagger -m github.com/shykes/x/daggy@755259c418d259f0f4b44d1808815e75392da898 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 drive Dagger It is powered by OpenAI
ask() 🔗
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@755259c418d259f0f4b44d1808815e75392da898 call \
ask --prompt string --token env:MYSECRET
func (m *myModule) example(ctx context.Context, prompt string, token *Secret) string {
return dag.
Daggy().
Ask(ctx, prompt, token)
}
@function
async def example(prompt: str, token: dagger.Secret) -> str:
return await (
dag.daggy()
.ask(prompt, token)
)
@func()
async example(prompt: string, token: Secret): Promise<string> {
return dag
.daggy()
.ask(prompt, token)
}