daggy
It is powered by OpenAI and GPTScriptInstallation
dagger install github.com/shykes/x/daggy@938de81a96ae43d17f5395597a77390196a7fd54
Entrypoint
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:MYSECRET
func (m *myModule) example(token *Secret) *Daggy {
return dag.
Daggy(token)
}
@function
def example(token: dagger.Secret) -> dag.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-log
func (m *myModule) example(ctx context.Context, token *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-history
func (m *myModule) example(token *Secret) []*DaggyCommand {
return dag.
Daggy(token).
ShellHistory()
}
@function
def example(token: dagger.Secret) -> List[dag.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-reply
func (m *myModule) example(ctx context.Context, token *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 history
func (m *myModule) example(ctx context.Context, token *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 string
func (m *myModule) example(token *Secret, callId string, content string) *Daggy {
return dag.
Daggy(token).
WithToolOutput(callId, content)
}
@function
def example(token: dagger.Secret, call_id: str, content: str) -> dag.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 string
func (m *myModule) example(token *Secret, prompt string) *Daggy {
return dag.
Daggy(token).
WithPrompt(prompt)
}
@function
def example(token: dagger.Secret, prompt: str) -> dag.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 string
func (m *myModule) example(token *Secret, prompt string) *Daggy {
return dag.
Daggy(token).
Ask(prompt)
}
@function
def example(token: dagger.Secret, prompt: str) -> dag.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 module
Function DaggyCommand.command is not accessible from the daggy module
Function DaggyCommand.command is not accessible from the daggy module
Function DaggyCommand.command is not accessible from the daggy module
success() 🔗
Return Type
Boolean !
Example
Function DaggyCommand.success is not accessible from the daggy module
Function DaggyCommand.success is not accessible from the daggy module
Function DaggyCommand.success is not accessible from the daggy module
Function DaggyCommand.success is not accessible from the daggy module
result() 🔗
Return Type
String !
Example
Function DaggyCommand.result is not accessible from the daggy module
Function DaggyCommand.result is not accessible from the daggy module
Function DaggyCommand.result is not accessible from the daggy module
Function DaggyCommand.result is not accessible from the daggy module
error() 🔗
Return Type
String !
Example
Function DaggyCommand.error is not accessible from the daggy module
Function DaggyCommand.error is not accessible from the daggy module
Function DaggyCommand.error is not accessible from the daggy module
Function DaggyCommand.error is not accessible from the daggy module