@@ -8,7 +8,7 @@ import { common } from "./_common.ts"
88
99const Lmh = Schema . Literal ( "lower" , "medium" , "high" )
1010
11- const security = L . assistant ( Schema . Struct ( {
11+ const security = L . assistantStruct ( Schema . Struct ( {
1212 type : Schema . Literal ( "security" ) ,
1313 vulnerabilities : Schema . Array ( Schema . String ) ,
1414 riskLevel : Lmh ,
@@ -19,7 +19,7 @@ const security = L.assistant(Schema.Struct({
1919 messages : undefined ,
2020} ) ) )
2121
22- const performance = L . assistant ( Schema . Struct ( {
22+ const performance = L . assistantStruct ( Schema . Struct ( {
2323 type : Schema . Literal ( "performance" ) ,
2424 issues : Schema . Array ( Schema . String ) ,
2525 impact : Lmh ,
@@ -30,7 +30,7 @@ const performance = L.assistant(Schema.Struct({
3030 messages : undefined ,
3131} ) ) )
3232
33- const maintainability = L . assistant ( Schema . Struct ( {
33+ const maintainability = L . assistantStruct ( Schema . Struct ( {
3434 type : Schema . Literal ( "maintainability" ) ,
3535 concerns : Schema . Array ( Schema . String ) ,
3636 qualityScore : Schema . Int ,
@@ -51,7 +51,7 @@ Effect.gen(function*() {
5151 } )
5252 yield * L . user ( JSON . stringify ( Object . values ( reviews ) , null , 2 ) )
5353 yield * L . user `You are a technical lead summarizing multiple code reviews.`
54- const summary = yield * L . assistant ( )
54+ const summary = yield * L . assistantText
5555 return { reviews, summary }
5656} ) . pipe (
5757 Effect . provide ( Strand . layer ( {
0 commit comments