Dagger
Search

daggy

It is powered by OpenAI and GPTScript

Installation

dagger install github.com/shykes/x/daggy@fb20ed398e3451dbff9001196354e6aefcfc8bac

Entrypoint

Return Type
Daggy
Example
dagger -m github.com/shykes/x/daggy@fb20ed398e3451dbff9001196354e6aefcfc8bac 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
NameTypeDefault ValueDescription
promptString !-A prompt telling Daggy what to do
tokenSecret !-OpenAI API key
baseContainer -Custom base container
Example
dagger -m github.com/shykes/x/daggy@fb20ed398e3451dbff9001196354e6aefcfc8bac 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)
}