MCPcopy Index your code
hub / github.com/dagger/dagger / Prompt

Method Prompt

modules/evals/nested_objects.go:28–38  ·  view source on GitHub ↗
(base *dagger.LLM)

Source from the content-addressed store, hash-verified

26}
27
28func (e *NestedObjects) Prompt(base *dagger.LLM) *dagger.LLM {
29 return base.
30 WithEnv(dag.Env().
31 WithModule(
32 dag.CurrentModule().Source().
33 Directory("./testdata/object-fields").
34 AsModule(),
35 ).
36 WithStringOutput("stdout", "The output of the container.")).
37 WithPrompt("Call One, Two, and then Three, which will return you a container. Then, get me the container stdout. Stop early and respond with MAYDAY if you see a bunch of base64 encoded output in the response.")
38}
39
40func (e *NestedObjects) Check(ctx context.Context, prompt *dagger.LLM) error {
41 return runt.Run(ctx, func(t testing.TB) {

Callers

nothing calls this directly

Calls 9

DirectoryMethod · 0.65
CurrentModuleMethod · 0.65
WithPromptMethod · 0.45
WithEnvMethod · 0.45
WithStringOutputMethod · 0.45
WithModuleMethod · 0.45
EnvMethod · 0.45
AsModuleMethod · 0.45
SourceMethod · 0.45

Tested by

no test coverage detected