MCPcopy Create free account
hub / github.com/cloudwego/eino-examples / createSampleDocuments

Function createSampleDocuments

compose/batch/main.go:135–146  ·  view source on GitHub ↗

createSampleDocuments generates test documents with rotating priorities

(count int)

Source from the content-addressed store, hash-verified

133
134// createSampleDocuments generates test documents with rotating priorities
135func createSampleDocuments(count int) []ReviewRequest {
136 priorities := []string{"high", "medium", "low"}
137 docs := make([]ReviewRequest, count)
138 for i := 0; i < count; i++ {
139 docs[i] = ReviewRequest{
140 DocumentID: fmt.Sprintf("DOC-%03d", i+1),
141 Content: fmt.Sprintf("Document content for review #%d. This is a sample compliance document.", i+1),
142 Priority: priorities[i%len(priorities)],
143 }
144 }
145 return docs
146}
147
148// createSimpleReviewWorkflow creates a basic document review workflow
149// that simulates automated review with random scoring

Callers 6

runBasicSequentialFunction · 0.85
runConcurrentFunction · 0.85
runWithCompileOptionsFunction · 0.85
runWithInvokeOptionsFunction · 0.85
runWithErrorFunction · 0.85
runParentGraphWithReduceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected