@mcp-use/agent 2.0.25-canary.2 → 2.0.25-canary.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/agents/remote.d.ts.map +1 -1
- package/dist/index.js +3 -14
- package/dist/index.js.map +1 -1
- package/dist/langchain.js +3 -14
- package/dist/langchain.js.map +1 -1
- package/package.json +2 -2
package/dist/langchain.js
CHANGED
|
@@ -1714,7 +1714,7 @@ function extractModelInfo(llm) {
|
|
|
1714
1714
|
import { Telemetry } from "@mcp-use/client";
|
|
1715
1715
|
|
|
1716
1716
|
// src/version.ts
|
|
1717
|
-
var VERSION = "2.0.25-canary.
|
|
1717
|
+
var VERSION = "2.0.25-canary.4";
|
|
1718
1718
|
function getPackageVersion() {
|
|
1719
1719
|
return VERSION;
|
|
1720
1720
|
}
|
|
@@ -2013,20 +2013,9 @@ var RemoteAgent = class {
|
|
|
2013
2013
|
logger9.debug(`\u{1F527} Response: ${JSON.stringify(result)}`);
|
|
2014
2014
|
logger9.debug("\u2705 Remote execution completed successfully");
|
|
2015
2015
|
if (typeof result === "object" && result !== null) {
|
|
2016
|
-
if (result.status === "error" || result.error
|
|
2017
|
-
const errorMsg = result.error ?? String(result);
|
|
2018
|
-
logger9.error(`\u274C Remote agent execution failed: ${errorMsg}`);
|
|
2019
|
-
throw new Error(`Remote agent execution failed: ${errorMsg}`);
|
|
2020
|
-
}
|
|
2021
|
-
if (String(result).includes("failed to initialize")) {
|
|
2022
|
-
logger9.error(`\u274C Agent initialization failed: ${result}`);
|
|
2016
|
+
if (result.status === "error" || result.error != null) {
|
|
2023
2017
|
throw new Error(
|
|
2024
|
-
|
|
2025
|
-
\u2022 Invalid agent configuration (LLM model, system prompt)
|
|
2026
|
-
\u2022 Missing or invalid MCP server configurations
|
|
2027
|
-
\u2022 Network connectivity issues with MCP servers
|
|
2028
|
-
\u2022 Missing environment variables or credentials
|
|
2029
|
-
Raw error: ${result}`
|
|
2018
|
+
typeof result.error === "string" ? result.error : JSON.stringify(result.error ?? result)
|
|
2030
2019
|
);
|
|
2031
2020
|
}
|
|
2032
2021
|
}
|