daggy
It is powered by OpenAI and GPTScriptInstallation
dagger install github.com/shykes/x/daggy@938de81a96ae43d17f5395597a77390196a7fd54Entrypoint
Return Type
Daggy !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| token | Secret ! | - | OpenAI API token |
Example
dagger -m github.com/shykes/x/daggy@938de81a96ae43d17f5395597a77390196a7fd54 call \
--token env:MYSECRETfunc (m *MyModule) Example(token *dagger.Secret) *dagger.Daggy {
return dag.
Daggy(token)
}@function
def example(token: dagger.Secret) -> dagger.Daggy:
return (
dag.daggy(token)
)@func()
example(token: Secret): Daggy {
return dag
.daggy(token)
}Types
Daggy 🔗
Daggy is an AI agent that knows how to drive Dagger It is powered by OpenAI
debugLog() 🔗
Return Type
[String ! ] ! Example
dagger -m github.com/shykes/x/daggy@938de81a96ae43d17f5395597a77390196a7fd54 call \
--token env:MYSECRET debug-logfunc (m *MyModule) Example(ctx context.Context, token *dagger.Secret) []string {
return dag.
Daggy(token).
DebugLog(ctx)
}@function
async def example(token: dagger.Secret) -> List[str]:
return await (
dag.daggy(token)
.debug_log()
)@func()
async example(token: Secret): Promise<string[]> {
return dag
.daggy(token)
.debugLog()
}shellHistory() 🔗
Return Type
[Command ! ] ! Example
dagger -m github.com/shykes/x/daggy@938de81a96ae43d17f5395597a77390196a7fd54 call \
--token env:MYSECRET shell-historyfunc (m *MyModule) Example(token *dagger.Secret) []*dagger.DaggyCommand {
return dag.
Daggy(token).
ShellHistory()
}@function
def example(token: dagger.Secret) -> List[dagger.DaggyCommand]:
return (
dag.daggy(token)
.shell_history()
)@func()
example(token: Secret): DaggyCommand[] {
return dag
.daggy(token)
.shellHistory()
}lastReply() 🔗
history []openai.ChatCompletionMessageParamUnion
Return Type
String ! Example
dagger -m github.com/shykes/x/daggy@938de81a96ae43d17f5395597a77390196a7fd54 call \
--token env:MYSECRET last-replyfunc (m *MyModule) Example(ctx context.Context, token *dagger.Secret) string {
return dag.
Daggy(token).
LastReply(ctx)
}@function
async def example(token: dagger.Secret) -> str:
return await (
dag.daggy(token)
.last_reply()
)@func()
async example(token: Secret): Promise<string> {
return dag
.daggy(token)
.lastReply()
}history() 🔗
Return Type
String ! Example
dagger -m github.com/shykes/x/daggy@938de81a96ae43d17f5395597a77390196a7fd54 call \
--token env:MYSECRET historyfunc (m *MyModule) Example(ctx context.Context, token *dagger.Secret) string {
return dag.
Daggy(token).
History(ctx)
}@function
async def example(token: dagger.Secret) -> str:
return await (
dag.daggy(token)
.history()
)@func()
async example(token: Secret): Promise<string> {
return dag
.daggy(token)
.history()
}withToolOutput() 🔗
Return Type
Daggy !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| callId | String ! | - | No description provided |
| content | String ! | - | No description provided |
Example
dagger -m github.com/shykes/x/daggy@938de81a96ae43d17f5395597a77390196a7fd54 call \
--token env:MYSECRET with-tool-output --call-id string --content stringfunc (m *MyModule) Example(token *dagger.Secret, callId string, content string) *dagger.Daggy {
return dag.
Daggy(token).
WithToolOutput(callId, content)
}@function
def example(token: dagger.Secret, call_id: str, content: str) -> dagger.Daggy:
return (
dag.daggy(token)
.with_tool_output(call_id, content)
)@func()
example(token: Secret, callId: string, content: string): Daggy {
return dag
.daggy(token)
.withToolOutput(callId, content)
}withPrompt() 🔗
Return Type
Daggy !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| prompt | String ! | - | No description provided |
Example
dagger -m github.com/shykes/x/daggy@938de81a96ae43d17f5395597a77390196a7fd54 call \
--token env:MYSECRET with-prompt --prompt stringfunc (m *MyModule) Example(token *dagger.Secret, prompt string) *dagger.Daggy {
return dag.
Daggy(token).
WithPrompt(prompt)
}@function
def example(token: dagger.Secret, prompt: str) -> dagger.Daggy:
return (
dag.daggy(token)
.with_prompt(prompt)
)@func()
example(token: Secret, prompt: string): Daggy {
return dag
.daggy(token)
.withPrompt(prompt)
}ask() 🔗
Return Type
Daggy !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| prompt | String ! | - | A prompt telling Daggy what to do |
| knowledge | Boolean | - | No description provided |
Example
dagger -m github.com/shykes/x/daggy@938de81a96ae43d17f5395597a77390196a7fd54 call \
--token env:MYSECRET ask --prompt stringfunc (m *MyModule) Example(token *dagger.Secret, prompt string) *dagger.Daggy {
return dag.
Daggy(token).
Ask(prompt)
}@function
def example(token: dagger.Secret, prompt: str) -> dagger.Daggy:
return (
dag.daggy(token)
.ask(prompt)
)@func()
example(token: Secret, prompt: string): Daggy {
return dag
.daggy(token)
.ask(prompt)
}Command 🔗
command() 🔗
Return Type
String ! Example
Function DaggyCommand.command is not accessible from the daggy moduleFunction DaggyCommand.command is not accessible from the daggy moduleFunction DaggyCommand.command is not accessible from the daggy moduleFunction DaggyCommand.command is not accessible from the daggy modulesuccess() 🔗
Return Type
Boolean ! Example
Function DaggyCommand.success is not accessible from the daggy moduleFunction DaggyCommand.success is not accessible from the daggy moduleFunction DaggyCommand.success is not accessible from the daggy moduleFunction DaggyCommand.success is not accessible from the daggy moduleresult() 🔗
Return Type
String ! Example
Function DaggyCommand.result is not accessible from the daggy moduleFunction DaggyCommand.result is not accessible from the daggy moduleFunction DaggyCommand.result is not accessible from the daggy moduleFunction DaggyCommand.result is not accessible from the daggy moduleerror() 🔗
Return Type
String ! Example
Function DaggyCommand.error is not accessible from the daggy moduleFunction DaggyCommand.error is not accessible from the daggy moduleFunction DaggyCommand.error is not accessible from the daggy moduleFunction DaggyCommand.error is not accessible from the daggy module