MCPcopy Create free account
hub / github.com/anomalyco/opencode / summarize

Function summarize

github/index.ts:576–586  ·  view source on GitHub ↗
(response: string)

Source from the content-addressed store, hash-verified

574}
575
576async function summarize(response: string) {
577 try {
578 return await chat(`Summarize the following in less than 40 characters:\n\n${response}`)
579 } catch {
580 if (isScheduleEvent()) {
581 return "Scheduled task changes"
582 }
583 const payload = useContext().payload as IssueCommentEvent
584 return `Fix issue: ${payload.issue.title}`
585 }
586}
587
588async function resolveAgent(): Promise<string | undefined> {
589 const envAgent = useEnvAgent()

Callers 1

index.tsFile · 0.70

Calls 2

useContextFunction · 0.85
chatFunction · 0.70

Tested by

no test coverage detected