MCPcopy Index your code
hub / github.com/github/copilot-sdk / SendPrompt

Method SendPrompt

go/session.go:432–434  ·  view source on GitHub ↗

SendPrompt is a convenience wrapper for [Session.Send] that takes a plain prompt string instead of a [MessageOptions] struct. Equivalent to: session.Send(ctx, copilot.MessageOptions{Prompt: prompt})

(ctx context.Context, prompt string)

Source from the content-addressed store, hash-verified

430//
431// session.Send(ctx, copilot.MessageOptions{Prompt: prompt})
432func (s *Session) SendPrompt(ctx context.Context, prompt string) (string, error) {
433 return s.Send(ctx, MessageOptions{Prompt: prompt})
434}
435
436// SendAndWait sends a message to this session and waits until the session becomes idle.
437//

Callers

nothing calls this directly

Calls 1

SendMethod · 0.95

Tested by

no test coverage detected