remove debug statements
This commit is contained in:
parent
0cc7a16f24
commit
53becf10ad
5 changed files with 3 additions and 25 deletions
|
|
@ -308,15 +308,9 @@ export class ModelService
|
|||
|
||||
getSubagentModels() {
|
||||
const state = this.getState();
|
||||
logger.debug("debug1 getSubagentModels", {
|
||||
assistant: state.assistant,
|
||||
});
|
||||
if (!state.assistant) {
|
||||
return [];
|
||||
}
|
||||
logger.debug("debug1 getSubagentModels", {
|
||||
assistantModels: state.assistant.models,
|
||||
});
|
||||
const subagentModels = state.assistant.models
|
||||
?.filter((model) => !!model)
|
||||
.filter((model) => !!model.name) // filter out models without a name
|
||||
|
|
|
|||
|
|
@ -457,8 +457,6 @@ export async function streamChatResponse(
|
|||
chatHistory = refreshChatHistoryFromService(chatHistory, isCompacting);
|
||||
logger.debug("Starting conversation iteration");
|
||||
|
||||
logger.debug("debug1 streamChatResponse history", { chatHistory });
|
||||
|
||||
// Get system message once per iteration (can change based on tool permissions mode)
|
||||
const systemMessage = await services.systemMessage.getSystemMessage(
|
||||
services.toolPermissions.getState().currentMode,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import { services } from "../services/index.js";
|
||||
import { logger } from "../util/logger.js";
|
||||
|
||||
/**
|
||||
* Get an agent by name
|
||||
|
|
@ -24,7 +23,7 @@ export function generateSubagentToolDescription(): string {
|
|||
)
|
||||
.join("\n");
|
||||
|
||||
const temp = `Launch a specialized subagent to handle complex, multi-step tasks autonomously.
|
||||
return `Launch a specialized subagent to handle complex, multi-step tasks autonomously.
|
||||
|
||||
Available agent types:
|
||||
${agentList}
|
||||
|
|
@ -38,8 +37,4 @@ When to use this tool:
|
|||
When NOT to use this tool:
|
||||
- Tasks you can complete directly with available tools
|
||||
- Trivial operations that don't require multiple steps`;
|
||||
|
||||
logger.debug("debug1 temp->", { temp });
|
||||
|
||||
return temp;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,8 +45,6 @@ async function buildAgentSystemMessage(
|
|||
|
||||
const agentPrompt = agent.model?.chatOptions?.baseSystemMessage || "";
|
||||
|
||||
logger.debug("debug1 agentPrompt", { agentPrompt });
|
||||
|
||||
// Combine base system message with agent-specific prompt
|
||||
if (agentPrompt) {
|
||||
return `${baseMessage}\n\n${agentPrompt}`;
|
||||
|
|
@ -78,8 +76,6 @@ export async function executeSubAgent(
|
|||
throw new Error("Model or LLM API not available");
|
||||
}
|
||||
|
||||
logger.debug("debug1 model and llmapi", { subAgent });
|
||||
|
||||
// allow all tools for now
|
||||
// todo: eventually we want to show the same prompt in a dialog whether asking whether that tool call is allowed or not
|
||||
|
||||
|
|
@ -160,11 +156,6 @@ export async function executeSubAgent(
|
|||
? lastMessage.message.content
|
||||
: "";
|
||||
|
||||
logger.debug("debug1 response was", {
|
||||
response,
|
||||
history: chatHistory,
|
||||
});
|
||||
|
||||
logger.debug("Subagent execution completed", {
|
||||
agent: model?.name,
|
||||
responseLength: response.length,
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ export const subagentTool: Tool = {
|
|||
run: async (args, context?: { toolCallId: string }) => {
|
||||
const { prompt, subagent_name } = args;
|
||||
|
||||
logger.debug("debug1 subagent args", { args, context });
|
||||
logger.debug("subagent args", { args, context });
|
||||
|
||||
// Get agent configuration
|
||||
const agent = getAgent(subagent_name);
|
||||
|
|
@ -101,7 +101,7 @@ export const subagentTool: Tool = {
|
|||
: undefined,
|
||||
});
|
||||
|
||||
logger.debug("debug1 subagent result->", { result });
|
||||
logger.debug("subagent result", { result });
|
||||
|
||||
const output = [
|
||||
result.response,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue