Add files via upload

This commit is contained in:
公明 authored and GitHub committed 2026-08-15 01:45:01 +08:00
1 parent 31f80b2f0c
commit a6631a5cde
46 files changed
+4672 -317

No files matched your search

+9
View File
@@ -21,3 +21,12 @@ func literalInstructionGenModelInput(ctx context.Context, instruction string, in
msgs = append(msgs, input.Messages...)
return msgs, nil
}
func literalAgenticInstructionGenModelInput(ctx context.Context, instruction string, input *adk.TypedAgentInput[*schema.AgenticMessage]) ([]*schema.AgenticMessage, error) {
msgs := make([]*schema.AgenticMessage, 0, len(input.Messages)+1)
if instruction != "" {
msgs = append(msgs, schema.SystemAgenticMessage(instruction))
}
msgs = append(msgs, input.Messages...)
return msgs, nil
}