2025-11-15 01:51:22 +05:30
|
|
|
import { Agent, ToolAttachment } from "../entities/agent.js";
|
|
|
|
|
import z from "zod";
|
|
|
|
|
import { CopilotInstructions } from "./instructions.js";
|
|
|
|
|
import { BuiltinTools } from "../lib/builtin-tools.js";
|
|
|
|
|
|
|
|
|
|
const tools: Record<string, z.infer<typeof ToolAttachment>> = {};
|
|
|
|
|
for (const [name, tool] of Object.entries(BuiltinTools)) {
|
|
|
|
|
tools[name] = {
|
|
|
|
|
type: "builtin",
|
|
|
|
|
name,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const CopilotAgent: z.infer<typeof Agent> = {
|
|
|
|
|
name: "rowboatx",
|
|
|
|
|
description: "Rowboatx copilot",
|
|
|
|
|
instructions: CopilotInstructions,
|
2025-11-17 23:27:00 +05:30
|
|
|
model: "gpt-5.1",
|
2025-11-15 01:51:22 +05:30
|
|
|
tools,
|
|
|
|
|
}
|