MCPcopy Index your code
hub / github.com/coder/coder / generateStructuredTitle

Function generateStructuredTitle

coderd/x/chatd/quickgen.go:442–458  ·  view source on GitHub ↗
(
	ctx context.Context,
	model fantasy.LanguageModel,
	systemPrompt string,
	userInput string,
)

Source from the content-addressed store, hash-verified

440}
441
442func generateStructuredTitle(
443 ctx context.Context,
444 model fantasy.LanguageModel,
445 systemPrompt string,
446 userInput string,
447) (string, error) {
448 title, _, err := generateStructuredTitleWithUsage(
449 ctx,
450 model,
451 systemPrompt,
452 userInput,
453 )
454 if err != nil {
455 return "", err
456 }
457 return title, nil
458}
459
460func generateStructuredTitleWithUsage(
461 ctx context.Context,

Callers 1

generateTitleFunction · 0.85

Calls 1

Tested by

no test coverage detected