refactor(prompts): the last three instructions written in Go are files (#2051)
AGENTS.md sends every instruction to a file in internal/prompts, and the workspace scoping rule, the PR-review adversary mission and the model probe were the three that still read as Go string literals. The text is unchanged: the templates render the same bytes the concatenations built.
This commit is contained in:
9 files changed
+37
-19
No files matched your search
@@ -24,6 +24,7 @@ import (
|
||||
"github.com/samcharles93/ai-sdk/runtime"
|
||||
|
||||
"github.com/samcharles93/archie-core/internal/platform/httpapi"
|
||||
"github.com/samcharles93/archie-core/internal/platform/prompts"
|
||||
"github.com/samcharles93/archie-core/modules/governance/internal/store"
|
||||
)
|
||||
|
||||
@@ -631,7 +632,7 @@ func (m *Module) testAgentModel(ctx context.Context, in *struct{ Body Model }) (
|
||||
defer cancel()
|
||||
resp, err := provider.Chat(ctx, chat.Request{
|
||||
Model: model.Model,
|
||||
Messages: []chat.Message{{Role: chat.RoleUser, Content: "Reply with the single word OK."}},
|
||||
Messages: []chat.Message{{Role: chat.RoleUser, Content: prompts.ModelProbe()}},
|
||||
MaxTokens: 32,
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user