dallin's feedback
This commit is contained in:
parent
77a8db7f63
commit
88ef07eb23
3 changed files with 5 additions and 4 deletions
|
|
@ -307,7 +307,7 @@ export type ToCoreFromIdeOrWebviewProtocol = {
|
|||
"auth/getAuthUrl": [{ useOnboarding: boolean }, { url: string }];
|
||||
"tools/call": [
|
||||
{ toolCall: ToolCall },
|
||||
{ contextItems: ContextItem[]; errorMessage?: string; errorReason?: string },
|
||||
{ contextItems: ContextItem[]; errorMessage?: string; errorReason?: ContinueErrorReason },
|
||||
];
|
||||
"tools/evaluatePolicy": [
|
||||
{ toolName: string; basePolicy: ToolPolicy; args: Record<string, unknown> },
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { CallToolResultSchema } from "@modelcontextprotocol/sdk/types.js";
|
||||
import { ContextItem, Tool, ToolCall, ToolExtras } from "..";
|
||||
import { MCPManagerSingleton } from "../context/mcp/MCPManagerSingleton";
|
||||
import { ContinueError } from "../util/errors";
|
||||
import { ContinueError, ContinueErrorReason } from "../util/errors";
|
||||
import { canParseUrl } from "../util/url";
|
||||
import { BuiltInToolNames } from "./builtIn";
|
||||
|
||||
|
|
@ -198,7 +198,7 @@ export async function callTool(
|
|||
): Promise<{
|
||||
contextItems: ContextItem[];
|
||||
errorMessage: string | undefined;
|
||||
errorReason?: string;
|
||||
errorReason?: ContinueErrorReason;
|
||||
}> {
|
||||
try {
|
||||
const args = safeParseToolCallArgs(toolCall);
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ import {
|
|||
} from "@opentelemetry/semantic-conventions";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
|
||||
import { ContinueErrorReason } from "../../../core/util/errors.js";
|
||||
import { isHeadlessMode } from "../util/cli.js";
|
||||
import { isContinueRemoteAgent, isGitHubActions } from "../util/git.js";
|
||||
import { logger } from "../util/logger.js";
|
||||
|
|
@ -498,7 +499,7 @@ class TelemetryService {
|
|||
success: boolean;
|
||||
durationMs: number;
|
||||
error?: string;
|
||||
errorReason?: string;
|
||||
errorReason?: ContinueErrorReason;
|
||||
decision?: "accept" | "reject";
|
||||
source?: string;
|
||||
toolParameters?: string;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue