(base *dagger.LLM)
| 26 | } |
| 27 | |
| 28 | func (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 | |
| 40 | func (e *NestedObjects) Check(ctx context.Context, prompt *dagger.LLM) error { |
| 41 | return runt.Run(ctx, func(t testing.TB) { |
nothing calls this directly
no test coverage detected