agent-sdk
No long description provided.
Installation
dagger install github.com/shykes/x/agent-sdk@c71f1e5edcda371e19f754f0eab1faf31ba2d770Entrypoint
Return Type
AgentSdk !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | No description provided |
Example
dagger -m github.com/shykes/x/agent-sdk@c71f1e5edcda371e19f754f0eab1faf31ba2d770 call \
func (m *MyModule) Example() *dagger.AgentSdk {
return dag.
AgentSdk()
}@function
def example() -> dagger.AgentSdk:
return (
dag.agent_sdk()
)@func()
example(): AgentSdk {
return dag
.agentSdk()
}Types
AgentSdk 🔗
source() 🔗
Return Type
Directory ! Example
dagger -m github.com/shykes/x/agent-sdk@c71f1e5edcda371e19f754f0eab1faf31ba2d770 call \
sourcefunc (m *MyModule) Example() *dagger.Directory {
return dag.
AgentSdk().
Source()
}@function
def example() -> dagger.Directory:
return (
dag.agent_sdk()
.source()
)@func()
example(): Directory {
return dag
.agentSdk()
.source()
}codegen() 🔗
Return Type
GeneratedCode !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| modSource | ModuleSource ! | - | No description provided |
| introspectionJson | File ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(modSource *dagger.ModuleSource, introspectionJson *dagger.File) *dagger.GeneratedCode {
return dag.
AgentSdk().
Codegen(modSource, introspectionJson)
}@function
def example(mod_source: dagger.ModuleSource, introspection_json: dagger.File) -> dagger.GeneratedCode:
return (
dag.agent_sdk()
.codegen(mod_source, introspection_json)
)@func()
example(modSource: ModuleSource, introspectionJson: File): GeneratedCode {
return dag
.agentSdk()
.codegen(modSource, introspectionJson)
}moduleRuntime() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| modSource | ModuleSource ! | - | No description provided |
| introspectionJson | File ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(modSource *dagger.ModuleSource, introspectionJson *dagger.File) *dagger.Container {
return dag.
AgentSdk().
ModuleRuntime(modSource, introspectionJson)
}@function
def example(mod_source: dagger.ModuleSource, introspection_json: dagger.File) -> dagger.Container:
return (
dag.agent_sdk()
.module_runtime(mod_source, introspection_json)
)@func()
example(modSource: ModuleSource, introspectionJson: File): Container {
return dag
.agentSdk()
.moduleRuntime(modSource, introspectionJson)
}