multiagent-demo
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/kpenfound/agents/multiagent-demo@56144b22672e3f8875eca4689202b5d39ae7c42c
Entrypoint
Return Type
MultiagentDemo !
Example
dagger -m github.com/kpenfound/agents/multiagent-demo@56144b22672e3f8875eca4689202b5d39ae7c42c call \
func (m *MyModule) Example() *dagger.MultiagentDemo {
return dag.
MultiagentDemo()
}
@function
def example() -> dagger.MultiagentDemo:
return (
dag.multiagent_demo()
)
@func()
example(): MultiagentDemo {
return dag
.multiagentDemo()
}
Types
MultiagentDemo 🔗
demo() 🔗
Demo of a multi-agent system
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
chatModel | String ! | "gpt-4o" | No description provided |
coderModel | String ! | "gpt-o1" | No description provided |
Example
dagger -m github.com/kpenfound/agents/multiagent-demo@56144b22672e3f8875eca4689202b5d39ae7c42c call \
demo --chat-model string --coder-model string
func (m *MyModule) Example(ctx context.Context, chatModel string, coderModel string) string {
return dag.
MultiagentDemo().
Demo(ctx, chatModel, coderModel)
}
@function
async def example(chat_model: str, coder_model: str) -> str:
return await (
dag.multiagent_demo()
.demo(chat_model, coder_model)
)
@func()
async example(chatModel: string, coderModel: string): Promise<string> {
return dag
.multiagentDemo()
.demo(chatModel, coderModel)
}