MCPcopy Create free account
hub / github.com/dagger/dagger / withStringInput

Method withStringInput

core/schema/env.go:315–322  ·  view source on GitHub ↗
(ctx context.Context, env *core.Env, args struct {
	Name        string
	Value       string
	Description string
})

Source from the content-addressed store, hash-verified

313}
314
315func (s environmentSchema) withStringInput(ctx context.Context, env *core.Env, args struct {
316 Name string
317 Value string
318 Description string
319}) (*core.Env, error) {
320 str := dagql.NewString(args.Value)
321 return env.WithInput(args.Name, str, args.Description), nil
322}
323
324func (s environmentSchema) withStringOutput(ctx context.Context, env *core.Env, args struct {
325 Name string

Callers 12

agentMethod · 0.80
goProgramMethod · 0.80
goProgramMethod · 0.80
agentMethod · 0.80
goProgramMethod · 0.80
goProgramMethod · 0.80
agentMethod · 0.80
goProgramMethod · 0.80
goProgramMethod · 0.80
agentMethod · 0.80
goProgramMethod · 0.80
goProgramMethod · 0.80

Calls 2

NewStringFunction · 0.92
WithInputMethod · 0.45

Tested by

no test coverage detected