Dagger
Search

daggy

It is powered by OpenAI and GPTScript

Installation

dagger install github.com/shykes/x/daggy@00e7e985f0a25a310396e782a7cae5bf3d77f365

Entrypoint

Return Type
Daggy
Example
dagger -m github.com/shykes/x/daggy@00e7e985f0a25a310396e782a7cae5bf3d77f365 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@00e7e985f0a25a310396e782a7cae5bf3d77f365 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)
}