#Examples of using Dagger Modules from the SDK

1 messages · Page 1 of 1 (latest)

lethal atlas
#

I'm looking for documentation & examples of how to import/use a module from the SDK (Go prefered, any better than none)

After getting the module, I'd like to

  1. discover functions / agents
  2. programmatically run those things

Are there some example modules with functions, and especially an agent (doesn't matter what it does), that I can use without making my own?

I'm gearing up to (1) write a CUE interface to the Go SDK (2) more deeply integrate Dagger with ADK, there are a lot of good places now that I've used ADK more

autumn hamlet
#

@lethal atlas look for the 'ModuleSource` type in the API reference

#

you can look in the dagger CLI code how it interacts with it

#

it kinda sounds like what you want is a CUE sdk

#

that gives you full access to dagger's introspection facility, which you can use to generate cue bindings

lethal atlas
#

actually both, there are some places in ADK that Dagger can fit nicely, including the agent stuff, that would be without CUE. It could be done for both Go and Python (and Java if adventurous), making Dagger Agents a plugin that anyone using ADK could use / reference a Dagger Module