@circuitwall/jarela 2.5.1 → 2.5.2
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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-path-routes-manifest.json +5 -5
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/react-loadable-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/chats/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/chats/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/lookup/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/lookup/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/pair/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/pair/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/status/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/builtin-tools/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/builtin-tools/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/credentials/[id]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/credentials/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/credentials/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/credentials/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/dashboard/pricing-task/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/dashboard/pricing-task/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/delegations/codex/[job_id]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/delegations/codex/[job_id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/documents/sources/[id]/reindex/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/documents/sources/[id]/reindex/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/documents/sources/[id]/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/documents/sources/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/documents/sources/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/documents/sources/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/events/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/events/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extension/agents/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/extension/agents/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extension/fill/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/extension/fill/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extension/refine/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/extension/refine/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extension/turn/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/extension/turn/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extensions/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/extensions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/config/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/config/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/secrets/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/secrets/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/health/probes/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/health/probes/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/integrations/[name]/test/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/integrations/[name]/test/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/callback/route.js +22 -1
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/start/route.js +22 -1
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/status/route.js +22 -1
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/callback/route.js +19 -2
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/start/route.js +19 -2
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/status/route.js +19 -2
- package/.next/standalone/.next/server/app/api/v1/packages/defaults/[id]/route.js +12 -2
- package/.next/standalone/.next/server/app/api/v1/packages/defaults/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/install/[id]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/packages/install/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/install/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/packages/install/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/[name]/enabled/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/[name]/enabled/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/[name]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/[name]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/packages/manifests/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/reload/route.js +12 -2
- package/.next/standalone/.next/server/app/api/v1/packages/reload/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/packages/route.js +12 -2
- package/.next/standalone/.next/server/app/api/v1/packages/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/page-capture/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/page-capture/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/pending-actions/[id]/approve/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/pending-actions/[id]/approve/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/pending-actions/[id]/deny/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/pending-actions/[id]/deny/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/pending-actions/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/pending-actions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/[id]/run/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/[id]/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/system/restart/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/system/restart/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/run/route.js +52 -45
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/tools/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/tools/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/update/apply/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/watchers/[id]/run/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/watchers/[id]/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/watchers/route.js +8 -1
- package/.next/standalone/.next/server/app/api/v1/watchers/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page.js +72982 -72980
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app-paths-manifest.json +5 -5
- package/.next/standalone/.next/server/chunks/1433.js +1 -1
- package/.next/standalone/.next/server/chunks/210.js +6 -6
- package/.next/standalone/.next/server/chunks/2471.js +17 -17
- package/.next/standalone/.next/server/chunks/3524.js +31 -15
- package/.next/standalone/.next/server/chunks/3566.js +1 -1
- package/.next/standalone/.next/server/chunks/4189.js +1 -1
- package/.next/standalone/.next/server/chunks/{9590.js → 423.js} +10 -3
- package/.next/standalone/.next/server/chunks/4508.js +2 -2
- package/.next/standalone/.next/server/chunks/4596.js +5 -2
- package/.next/standalone/.next/server/chunks/46.js +7 -0
- package/.next/standalone/.next/server/chunks/540.js +29 -5
- package/.next/standalone/.next/server/chunks/5585.js +41 -3
- package/.next/standalone/.next/server/chunks/5908.js +10 -10
- package/.next/standalone/.next/server/chunks/{3399.js → 6058.js} +882 -400
- package/.next/standalone/.next/server/chunks/{9164.js → 6190.js} +13777 -13530
- package/.next/standalone/.next/server/chunks/6649.js +1 -1
- package/.next/standalone/.next/server/chunks/{1388.js → 8842.js} +5961 -5793
- package/.next/standalone/.next/server/chunks/9032.js +5 -5
- package/.next/standalone/.next/server/chunks/{7547.js → 9217.js} +485 -3
- package/.next/standalone/.next/server/instrumentation.js +7 -0
- package/.next/standalone/.next/server/middleware-build-manifest.js +2 -2
- package/.next/standalone/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/standalone/.next/server/middleware.js +7 -0
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/preview-props.json +3 -3
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/chunks/app/{page-dd05bcb5f5b81157.js → page-4112e14360a9909e.js} +1576 -1574
- package/.next/standalone/docs/adoption/changesets.json +139 -0
- package/.next/standalone/package.json +2 -1
- package/CHANGELOG.md +38 -0
- package/browser-extension/background.js +5 -539
- package/browser-extension/lib/form-editing.mjs +541 -0
- package/components/chat/MessageBubble.tsx +4 -736
- package/components/chat/MessageContent.tsx +749 -0
- package/components/layout/MenuPanel.tsx +1 -1
- package/hooks/useSSE.test.ts +46 -0
- package/lib/agents/llm.ts +1 -1
- package/lib/agents/output-validator/validator.test.ts +4 -0
- package/lib/agents/output-validator/validator.ts +1 -1
- package/lib/agents/prompt-registry.test.ts +11 -0
- package/lib/agents/prompt-registry.ts +13 -0
- package/lib/agents/retry-prompts.ts +17 -0
- package/lib/agents/run-retry.ts +671 -0
- package/lib/agents/run-thread.retry.test.ts +176 -2
- package/lib/agents/run-thread.test.ts +6 -6
- package/lib/agents/run-thread.ts +9 -717
- package/lib/agents/stream-collector.test.ts +28 -4
- package/lib/agents/stream-collector.ts +5 -28
- package/lib/agents/tool-outcomes.ts +61 -0
- package/lib/documents/remote/confluence.test.ts +65 -0
- package/lib/documents/remote/confluence.ts +35 -9
- package/lib/documents/remote/jira.ts +1 -1
- package/lib/health/probes.test.ts +32 -0
- package/lib/health/probes.ts +29 -14
- package/lib/integrations/atlassian/manifest.ts +5 -3
- package/lib/integrations/github/manifest.ts +7 -4
- package/lib/integrations/gmail-oauth.ts +16 -1
- package/lib/integrations/microsoft-oauth.ts +17 -2
- package/lib/integrations/outlook/manifest.ts +10 -8
- package/lib/stores/integrations.ts +1 -0
- package/lib/tools/communications/calendar-aliases.test.ts +77 -1
- package/lib/tools/communications/gmail.test.ts +13 -0
- package/lib/tools/communications/ms-graph.test.ts +26 -3
- package/lib/tools/communications/ms-graph.ts +9 -11
- package/lib/tools/communications/outlook-calendar.ts +94 -17
- package/lib/tools/packages/default-packages/atlassian.ts +8 -2
- package/package.json +2 -1
- package/scripts/standalone-footprint.mjs +1 -1
- /package/.next/standalone/.next/static/{XFZTDssHBZKKX2mzH2ld0 → VZXMorlOmSmi3dUr7K5UX}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{XFZTDssHBZKKX2mzH2ld0 → VZXMorlOmSmi3dUr7K5UX}/_ssgManifest.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports.id =
|
|
3
|
-
exports.ids = [
|
|
2
|
+
exports.id = 6058;
|
|
3
|
+
exports.ids = [6058];
|
|
4
4
|
exports.modules = {
|
|
5
5
|
|
|
6
6
|
/***/ 9934:
|
|
@@ -7969,6 +7969,488 @@ class CronFileParser {
|
|
|
7969
7969
|
exports.CronFileParser = CronFileParser;
|
|
7970
7970
|
|
|
7971
7971
|
|
|
7972
|
+
/***/ }),
|
|
7973
|
+
|
|
7974
|
+
/***/ 35552:
|
|
7975
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
7976
|
+
|
|
7977
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7978
|
+
/* harmony export */ u: () => (/* binding */ findIanaFromWindows)
|
|
7979
|
+
/* harmony export */ });
|
|
7980
|
+
/* unused harmony export findWindowsFromIana */
|
|
7981
|
+
// src/timezone-data.ts
|
|
7982
|
+
var ianaToWindowsMap = Object.assign(
|
|
7983
|
+
/* @__PURE__ */ Object.create(null),
|
|
7984
|
+
{
|
|
7985
|
+
"Africa/Abidjan": "Greenwich Standard Time",
|
|
7986
|
+
"Africa/Accra": "Greenwich Standard Time",
|
|
7987
|
+
"Africa/Addis_Ababa": "E. Africa Standard Time",
|
|
7988
|
+
"Africa/Algiers": "W. Central Africa Standard Time",
|
|
7989
|
+
"Africa/Asmera": "E. Africa Standard Time",
|
|
7990
|
+
"Africa/Bamako": "Greenwich Standard Time",
|
|
7991
|
+
"Africa/Bangui": "W. Central Africa Standard Time",
|
|
7992
|
+
"Africa/Banjul": "Greenwich Standard Time",
|
|
7993
|
+
"Africa/Bissau": "Greenwich Standard Time",
|
|
7994
|
+
"Africa/Blantyre": "South Africa Standard Time",
|
|
7995
|
+
"Africa/Brazzaville": "W. Central Africa Standard Time",
|
|
7996
|
+
"Africa/Bujumbura": "South Africa Standard Time",
|
|
7997
|
+
"Africa/Cairo": "Egypt Standard Time",
|
|
7998
|
+
"Africa/Casablanca": "Morocco Standard Time",
|
|
7999
|
+
"Africa/Ceuta": "Romance Standard Time",
|
|
8000
|
+
"Africa/Conakry": "Greenwich Standard Time",
|
|
8001
|
+
"Africa/Dakar": "Greenwich Standard Time",
|
|
8002
|
+
"Africa/Dar_es_Salaam": "E. Africa Standard Time",
|
|
8003
|
+
"Africa/Djibouti": "E. Africa Standard Time",
|
|
8004
|
+
"Africa/Douala": "W. Central Africa Standard Time",
|
|
8005
|
+
"Africa/El_Aaiun": "Morocco Standard Time",
|
|
8006
|
+
"Africa/Freetown": "Greenwich Standard Time",
|
|
8007
|
+
"Africa/Gaborone": "South Africa Standard Time",
|
|
8008
|
+
"Africa/Harare": "South Africa Standard Time",
|
|
8009
|
+
"Africa/Johannesburg": "South Africa Standard Time",
|
|
8010
|
+
"Africa/Juba": "South Sudan Standard Time",
|
|
8011
|
+
"Africa/Kampala": "E. Africa Standard Time",
|
|
8012
|
+
"Africa/Khartoum": "Sudan Standard Time",
|
|
8013
|
+
"Africa/Kigali": "South Africa Standard Time",
|
|
8014
|
+
"Africa/Kinshasa": "W. Central Africa Standard Time",
|
|
8015
|
+
"Africa/Lagos": "W. Central Africa Standard Time",
|
|
8016
|
+
"Africa/Libreville": "W. Central Africa Standard Time",
|
|
8017
|
+
"Africa/Lome": "Greenwich Standard Time",
|
|
8018
|
+
"Africa/Luanda": "W. Central Africa Standard Time",
|
|
8019
|
+
"Africa/Lubumbashi": "South Africa Standard Time",
|
|
8020
|
+
"Africa/Lusaka": "South Africa Standard Time",
|
|
8021
|
+
"Africa/Malabo": "W. Central Africa Standard Time",
|
|
8022
|
+
"Africa/Maputo": "South Africa Standard Time",
|
|
8023
|
+
"Africa/Maseru": "South Africa Standard Time",
|
|
8024
|
+
"Africa/Mbabane": "South Africa Standard Time",
|
|
8025
|
+
"Africa/Mogadishu": "E. Africa Standard Time",
|
|
8026
|
+
"Africa/Monrovia": "Greenwich Standard Time",
|
|
8027
|
+
"Africa/Nairobi": "E. Africa Standard Time",
|
|
8028
|
+
"Africa/Ndjamena": "W. Central Africa Standard Time",
|
|
8029
|
+
"Africa/Niamey": "W. Central Africa Standard Time",
|
|
8030
|
+
"Africa/Nouakchott": "Greenwich Standard Time",
|
|
8031
|
+
"Africa/Ouagadougou": "Greenwich Standard Time",
|
|
8032
|
+
"Africa/Porto-Novo": "W. Central Africa Standard Time",
|
|
8033
|
+
"Africa/Sao_Tome": "Sao Tome Standard Time",
|
|
8034
|
+
"Africa/Tripoli": "Libya Standard Time",
|
|
8035
|
+
"Africa/Tunis": "W. Central Africa Standard Time",
|
|
8036
|
+
"Africa/Windhoek": "Namibia Standard Time",
|
|
8037
|
+
"America/Adak": "Aleutian Standard Time",
|
|
8038
|
+
"America/Anchorage": "Alaskan Standard Time",
|
|
8039
|
+
"America/Anguilla": "SA Western Standard Time",
|
|
8040
|
+
"America/Antigua": "SA Western Standard Time",
|
|
8041
|
+
"America/Araguaina": "Tocantins Standard Time",
|
|
8042
|
+
"America/Argentina/La_Rioja": "Argentina Standard Time",
|
|
8043
|
+
"America/Argentina/Rio_Gallegos": "Argentina Standard Time",
|
|
8044
|
+
"America/Argentina/Salta": "Argentina Standard Time",
|
|
8045
|
+
"America/Argentina/San_Juan": "Argentina Standard Time",
|
|
8046
|
+
"America/Argentina/San_Luis": "Argentina Standard Time",
|
|
8047
|
+
"America/Argentina/Tucuman": "Argentina Standard Time",
|
|
8048
|
+
"America/Argentina/Ushuaia": "Argentina Standard Time",
|
|
8049
|
+
"America/Aruba": "SA Western Standard Time",
|
|
8050
|
+
"America/Asuncion": "Paraguay Standard Time",
|
|
8051
|
+
"America/Bahia": "Bahia Standard Time",
|
|
8052
|
+
"America/Bahia_Banderas": "Central Standard Time (Mexico)",
|
|
8053
|
+
"America/Barbados": "SA Western Standard Time",
|
|
8054
|
+
"America/Belem": "SA Eastern Standard Time",
|
|
8055
|
+
"America/Belize": "Central America Standard Time",
|
|
8056
|
+
"America/Blanc-Sablon": "SA Western Standard Time",
|
|
8057
|
+
"America/Boa_Vista": "SA Western Standard Time",
|
|
8058
|
+
"America/Bogota": "SA Pacific Standard Time",
|
|
8059
|
+
"America/Boise": "Mountain Standard Time",
|
|
8060
|
+
"America/Buenos_Aires": "Argentina Standard Time",
|
|
8061
|
+
"America/Cambridge_Bay": "Mountain Standard Time",
|
|
8062
|
+
"America/Campo_Grande": "Central Brazilian Standard Time",
|
|
8063
|
+
"America/Cancun": "Eastern Standard Time (Mexico)",
|
|
8064
|
+
"America/Caracas": "Venezuela Standard Time",
|
|
8065
|
+
"America/Catamarca": "Argentina Standard Time",
|
|
8066
|
+
"America/Cayenne": "SA Eastern Standard Time",
|
|
8067
|
+
"America/Cayman": "SA Pacific Standard Time",
|
|
8068
|
+
"America/Chicago": "Central Standard Time",
|
|
8069
|
+
"America/Chihuahua": "Central Standard Time (Mexico)",
|
|
8070
|
+
"America/Ciudad_Juarez": "Mountain Standard Time",
|
|
8071
|
+
"America/Coral_Harbour": "SA Pacific Standard Time",
|
|
8072
|
+
"America/Cordoba": "Argentina Standard Time",
|
|
8073
|
+
"America/Costa_Rica": "Central America Standard Time",
|
|
8074
|
+
"America/Creston": "US Mountain Standard Time",
|
|
8075
|
+
"America/Cuiaba": "Central Brazilian Standard Time",
|
|
8076
|
+
"America/Curacao": "SA Western Standard Time",
|
|
8077
|
+
"America/Danmarkshavn": "Greenwich Standard Time",
|
|
8078
|
+
"America/Dawson": "Yukon Standard Time",
|
|
8079
|
+
"America/Dawson_Creek": "US Mountain Standard Time",
|
|
8080
|
+
"America/Denver": "Mountain Standard Time",
|
|
8081
|
+
"America/Detroit": "Eastern Standard Time",
|
|
8082
|
+
"America/Dominica": "SA Western Standard Time",
|
|
8083
|
+
"America/Edmonton": "Mountain Standard Time",
|
|
8084
|
+
"America/Eirunepe": "SA Pacific Standard Time",
|
|
8085
|
+
"America/El_Salvador": "Central America Standard Time",
|
|
8086
|
+
"America/Fort_Nelson": "US Mountain Standard Time",
|
|
8087
|
+
"America/Fortaleza": "SA Eastern Standard Time",
|
|
8088
|
+
"America/Glace_Bay": "Atlantic Standard Time",
|
|
8089
|
+
"America/Godthab": "Greenland Standard Time",
|
|
8090
|
+
"America/Goose_Bay": "Atlantic Standard Time",
|
|
8091
|
+
"America/Grand_Turk": "Turks And Caicos Standard Time",
|
|
8092
|
+
"America/Grenada": "SA Western Standard Time",
|
|
8093
|
+
"America/Guadeloupe": "SA Western Standard Time",
|
|
8094
|
+
"America/Guatemala": "Central America Standard Time",
|
|
8095
|
+
"America/Guayaquil": "SA Pacific Standard Time",
|
|
8096
|
+
"America/Guyana": "SA Western Standard Time",
|
|
8097
|
+
"America/Halifax": "Atlantic Standard Time",
|
|
8098
|
+
"America/Havana": "Cuba Standard Time",
|
|
8099
|
+
"America/Hermosillo": "US Mountain Standard Time",
|
|
8100
|
+
"America/Indiana/Knox": "Central Standard Time",
|
|
8101
|
+
"America/Indiana/Marengo": "US Eastern Standard Time",
|
|
8102
|
+
"America/Indiana/Petersburg": "Eastern Standard Time",
|
|
8103
|
+
"America/Indiana/Tell_City": "Central Standard Time",
|
|
8104
|
+
"America/Indiana/Vevay": "US Eastern Standard Time",
|
|
8105
|
+
"America/Indiana/Vincennes": "Eastern Standard Time",
|
|
8106
|
+
"America/Indiana/Winamac": "Eastern Standard Time",
|
|
8107
|
+
"America/Indianapolis": "US Eastern Standard Time",
|
|
8108
|
+
"America/Inuvik": "Mountain Standard Time",
|
|
8109
|
+
"America/Iqaluit": "Eastern Standard Time",
|
|
8110
|
+
"America/Jamaica": "SA Pacific Standard Time",
|
|
8111
|
+
"America/Jujuy": "Argentina Standard Time",
|
|
8112
|
+
"America/Juneau": "Alaskan Standard Time",
|
|
8113
|
+
"America/Kentucky/Monticello": "Eastern Standard Time",
|
|
8114
|
+
"America/Kralendijk": "SA Western Standard Time",
|
|
8115
|
+
"America/La_Paz": "SA Western Standard Time",
|
|
8116
|
+
"America/Lima": "SA Pacific Standard Time",
|
|
8117
|
+
"America/Los_Angeles": "Pacific Standard Time",
|
|
8118
|
+
"America/Louisville": "Eastern Standard Time",
|
|
8119
|
+
"America/Lower_Princes": "SA Western Standard Time",
|
|
8120
|
+
"America/Maceio": "SA Eastern Standard Time",
|
|
8121
|
+
"America/Managua": "Central America Standard Time",
|
|
8122
|
+
"America/Manaus": "SA Western Standard Time",
|
|
8123
|
+
"America/Marigot": "SA Western Standard Time",
|
|
8124
|
+
"America/Martinique": "SA Western Standard Time",
|
|
8125
|
+
"America/Matamoros": "Central Standard Time",
|
|
8126
|
+
"America/Mazatlan": "Mountain Standard Time (Mexico)",
|
|
8127
|
+
"America/Mendoza": "Argentina Standard Time",
|
|
8128
|
+
"America/Menominee": "Central Standard Time",
|
|
8129
|
+
"America/Merida": "Central Standard Time (Mexico)",
|
|
8130
|
+
"America/Metlakatla": "Alaskan Standard Time",
|
|
8131
|
+
"America/Mexico_City": "Central Standard Time (Mexico)",
|
|
8132
|
+
"America/Miquelon": "Saint Pierre Standard Time",
|
|
8133
|
+
"America/Moncton": "Atlantic Standard Time",
|
|
8134
|
+
"America/Monterrey": "Central Standard Time (Mexico)",
|
|
8135
|
+
"America/Montevideo": "Montevideo Standard Time",
|
|
8136
|
+
"America/Montserrat": "SA Western Standard Time",
|
|
8137
|
+
"America/Nassau": "Eastern Standard Time",
|
|
8138
|
+
"America/New_York": "Eastern Standard Time",
|
|
8139
|
+
"America/Nome": "Alaskan Standard Time",
|
|
8140
|
+
"America/Noronha": "UTC-02",
|
|
8141
|
+
"America/North_Dakota/Beulah": "Central Standard Time",
|
|
8142
|
+
"America/North_Dakota/Center": "Central Standard Time",
|
|
8143
|
+
"America/North_Dakota/New_Salem": "Central Standard Time",
|
|
8144
|
+
"America/Ojinaga": "Central Standard Time",
|
|
8145
|
+
"America/Panama": "SA Pacific Standard Time",
|
|
8146
|
+
"America/Paramaribo": "SA Eastern Standard Time",
|
|
8147
|
+
"America/Phoenix": "US Mountain Standard Time",
|
|
8148
|
+
"America/Port_of_Spain": "SA Western Standard Time",
|
|
8149
|
+
"America/Port-au-Prince": "Haiti Standard Time",
|
|
8150
|
+
"America/Porto_Velho": "SA Western Standard Time",
|
|
8151
|
+
"America/Puerto_Rico": "SA Western Standard Time",
|
|
8152
|
+
"America/Punta_Arenas": "Magallanes Standard Time",
|
|
8153
|
+
"America/Rankin_Inlet": "Central Standard Time",
|
|
8154
|
+
"America/Recife": "SA Eastern Standard Time",
|
|
8155
|
+
"America/Regina": "Canada Central Standard Time",
|
|
8156
|
+
"America/Resolute": "Central Standard Time",
|
|
8157
|
+
"America/Rio_Branco": "SA Pacific Standard Time",
|
|
8158
|
+
"America/Santarem": "SA Eastern Standard Time",
|
|
8159
|
+
"America/Santiago": "Pacific SA Standard Time",
|
|
8160
|
+
"America/Santo_Domingo": "SA Western Standard Time",
|
|
8161
|
+
"America/Sao_Paulo": "E. South America Standard Time",
|
|
8162
|
+
"America/Scoresbysund": "Azores Standard Time",
|
|
8163
|
+
"America/Sitka": "Alaskan Standard Time",
|
|
8164
|
+
"America/St_Barthelemy": "SA Western Standard Time",
|
|
8165
|
+
"America/St_Johns": "Newfoundland Standard Time",
|
|
8166
|
+
"America/St_Kitts": "SA Western Standard Time",
|
|
8167
|
+
"America/St_Lucia": "SA Western Standard Time",
|
|
8168
|
+
"America/St_Thomas": "SA Western Standard Time",
|
|
8169
|
+
"America/St_Vincent": "SA Western Standard Time",
|
|
8170
|
+
"America/Swift_Current": "Canada Central Standard Time",
|
|
8171
|
+
"America/Tegucigalpa": "Central America Standard Time",
|
|
8172
|
+
"America/Thule": "Atlantic Standard Time",
|
|
8173
|
+
"America/Tijuana": "Pacific Standard Time (Mexico)",
|
|
8174
|
+
"America/Toronto": "Eastern Standard Time",
|
|
8175
|
+
"America/Tortola": "SA Western Standard Time",
|
|
8176
|
+
"America/Vancouver": "Pacific Standard Time",
|
|
8177
|
+
"America/Whitehorse": "Yukon Standard Time",
|
|
8178
|
+
"America/Winnipeg": "Central Standard Time",
|
|
8179
|
+
"America/Yakutat": "Alaskan Standard Time",
|
|
8180
|
+
"Antarctica/Casey": "Central Pacific Standard Time",
|
|
8181
|
+
"Antarctica/Davis": "SE Asia Standard Time",
|
|
8182
|
+
"Antarctica/DumontDUrville": "West Pacific Standard Time",
|
|
8183
|
+
"Antarctica/Macquarie": "Tasmania Standard Time",
|
|
8184
|
+
"Antarctica/Mawson": "West Asia Standard Time",
|
|
8185
|
+
"Antarctica/McMurdo": "New Zealand Standard Time",
|
|
8186
|
+
"Antarctica/Palmer": "SA Eastern Standard Time",
|
|
8187
|
+
"Antarctica/Rothera": "SA Eastern Standard Time",
|
|
8188
|
+
"Antarctica/Syowa": "E. Africa Standard Time",
|
|
8189
|
+
"Antarctica/Vostok": "Central Asia Standard Time",
|
|
8190
|
+
"Arctic/Longyearbyen": "W. Europe Standard Time",
|
|
8191
|
+
"Asia/Aden": "Arab Standard Time",
|
|
8192
|
+
"Asia/Almaty": "West Asia Standard Time",
|
|
8193
|
+
"Asia/Amman": "Jordan Standard Time",
|
|
8194
|
+
"Asia/Anadyr": "Russia Time Zone 11",
|
|
8195
|
+
"Asia/Aqtau": "West Asia Standard Time",
|
|
8196
|
+
"Asia/Aqtobe": "West Asia Standard Time",
|
|
8197
|
+
"Asia/Ashgabat": "West Asia Standard Time",
|
|
8198
|
+
"Asia/Atyrau": "West Asia Standard Time",
|
|
8199
|
+
"Asia/Baghdad": "Arabic Standard Time",
|
|
8200
|
+
"Asia/Bahrain": "Arab Standard Time",
|
|
8201
|
+
"Asia/Baku": "Azerbaijan Standard Time",
|
|
8202
|
+
"Asia/Bangkok": "SE Asia Standard Time",
|
|
8203
|
+
"Asia/Barnaul": "Altai Standard Time",
|
|
8204
|
+
"Asia/Beirut": "Middle East Standard Time",
|
|
8205
|
+
"Asia/Bishkek": "Central Asia Standard Time",
|
|
8206
|
+
"Asia/Brunei": "Singapore Standard Time",
|
|
8207
|
+
"Asia/Calcutta": "India Standard Time",
|
|
8208
|
+
"Asia/Chita": "Transbaikal Standard Time",
|
|
8209
|
+
"Asia/Colombo": "Sri Lanka Standard Time",
|
|
8210
|
+
"Asia/Damascus": "Syria Standard Time",
|
|
8211
|
+
"Asia/Dhaka": "Bangladesh Standard Time",
|
|
8212
|
+
"Asia/Dili": "Tokyo Standard Time",
|
|
8213
|
+
"Asia/Dubai": "Arabian Standard Time",
|
|
8214
|
+
"Asia/Dushanbe": "West Asia Standard Time",
|
|
8215
|
+
"Asia/Famagusta": "GTB Standard Time",
|
|
8216
|
+
"Asia/Gaza": "West Bank Standard Time",
|
|
8217
|
+
"Asia/Hebron": "West Bank Standard Time",
|
|
8218
|
+
"Asia/Hong_Kong": "China Standard Time",
|
|
8219
|
+
"Asia/Hovd": "W. Mongolia Standard Time",
|
|
8220
|
+
"Asia/Irkutsk": "North Asia East Standard Time",
|
|
8221
|
+
"Asia/Jakarta": "SE Asia Standard Time",
|
|
8222
|
+
"Asia/Jayapura": "Tokyo Standard Time",
|
|
8223
|
+
"Asia/Jerusalem": "Israel Standard Time",
|
|
8224
|
+
"Asia/Kabul": "Afghanistan Standard Time",
|
|
8225
|
+
"Asia/Kamchatka": "Russia Time Zone 11",
|
|
8226
|
+
"Asia/Karachi": "Pakistan Standard Time",
|
|
8227
|
+
"Asia/Katmandu": "Nepal Standard Time",
|
|
8228
|
+
"Asia/Khandyga": "Yakutsk Standard Time",
|
|
8229
|
+
"Asia/Krasnoyarsk": "North Asia Standard Time",
|
|
8230
|
+
"Asia/Kuala_Lumpur": "Singapore Standard Time",
|
|
8231
|
+
"Asia/Kuching": "Singapore Standard Time",
|
|
8232
|
+
"Asia/Kuwait": "Arab Standard Time",
|
|
8233
|
+
"Asia/Macau": "China Standard Time",
|
|
8234
|
+
"Asia/Magadan": "Magadan Standard Time",
|
|
8235
|
+
"Asia/Makassar": "Singapore Standard Time",
|
|
8236
|
+
"Asia/Manila": "Singapore Standard Time",
|
|
8237
|
+
"Asia/Muscat": "Arabian Standard Time",
|
|
8238
|
+
"Asia/Nicosia": "GTB Standard Time",
|
|
8239
|
+
"Asia/Novokuznetsk": "North Asia Standard Time",
|
|
8240
|
+
"Asia/Novosibirsk": "N. Central Asia Standard Time",
|
|
8241
|
+
"Asia/Omsk": "Omsk Standard Time",
|
|
8242
|
+
"Asia/Oral": "West Asia Standard Time",
|
|
8243
|
+
"Asia/Phnom_Penh": "SE Asia Standard Time",
|
|
8244
|
+
"Asia/Pontianak": "SE Asia Standard Time",
|
|
8245
|
+
"Asia/Pyongyang": "North Korea Standard Time",
|
|
8246
|
+
"Asia/Qatar": "Arab Standard Time",
|
|
8247
|
+
"Asia/Qostanay": "West Asia Standard Time",
|
|
8248
|
+
"Asia/Qyzylorda": "Qyzylorda Standard Time",
|
|
8249
|
+
"Asia/Rangoon": "Myanmar Standard Time",
|
|
8250
|
+
"Asia/Riyadh": "Arab Standard Time",
|
|
8251
|
+
"Asia/Saigon": "SE Asia Standard Time",
|
|
8252
|
+
"Asia/Sakhalin": "Sakhalin Standard Time",
|
|
8253
|
+
"Asia/Samarkand": "West Asia Standard Time",
|
|
8254
|
+
"Asia/Seoul": "Korea Standard Time",
|
|
8255
|
+
"Asia/Shanghai": "China Standard Time",
|
|
8256
|
+
"Asia/Singapore": "Singapore Standard Time",
|
|
8257
|
+
"Asia/Srednekolymsk": "Russia Time Zone 10",
|
|
8258
|
+
"Asia/Taipei": "Taipei Standard Time",
|
|
8259
|
+
"Asia/Tashkent": "West Asia Standard Time",
|
|
8260
|
+
"Asia/Tbilisi": "Georgian Standard Time",
|
|
8261
|
+
"Asia/Tehran": "Iran Standard Time",
|
|
8262
|
+
"Asia/Thimphu": "Bangladesh Standard Time",
|
|
8263
|
+
"Asia/Tokyo": "Tokyo Standard Time",
|
|
8264
|
+
"Asia/Tomsk": "Tomsk Standard Time",
|
|
8265
|
+
"Asia/Ulaanbaatar": "Ulaanbaatar Standard Time",
|
|
8266
|
+
"Asia/Urumqi": "Central Asia Standard Time",
|
|
8267
|
+
"Asia/Ust-Nera": "Vladivostok Standard Time",
|
|
8268
|
+
"Asia/Vientiane": "SE Asia Standard Time",
|
|
8269
|
+
"Asia/Vladivostok": "Vladivostok Standard Time",
|
|
8270
|
+
"Asia/Yakutsk": "Yakutsk Standard Time",
|
|
8271
|
+
"Asia/Yekaterinburg": "Ekaterinburg Standard Time",
|
|
8272
|
+
"Asia/Yerevan": "Caucasus Standard Time",
|
|
8273
|
+
"Atlantic/Azores": "Azores Standard Time",
|
|
8274
|
+
"Atlantic/Bermuda": "Atlantic Standard Time",
|
|
8275
|
+
"Atlantic/Canary": "GMT Standard Time",
|
|
8276
|
+
"Atlantic/Cape_Verde": "Cape Verde Standard Time",
|
|
8277
|
+
"Atlantic/Faeroe": "GMT Standard Time",
|
|
8278
|
+
"Atlantic/Madeira": "GMT Standard Time",
|
|
8279
|
+
"Atlantic/Reykjavik": "Greenwich Standard Time",
|
|
8280
|
+
"Atlantic/South_Georgia": "UTC-02",
|
|
8281
|
+
"Atlantic/St_Helena": "Greenwich Standard Time",
|
|
8282
|
+
"Atlantic/Stanley": "SA Eastern Standard Time",
|
|
8283
|
+
"Australia/Adelaide": "Cen. Australia Standard Time",
|
|
8284
|
+
"Australia/Brisbane": "E. Australia Standard Time",
|
|
8285
|
+
"Australia/Broken_Hill": "Cen. Australia Standard Time",
|
|
8286
|
+
"Australia/Darwin": "AUS Central Standard Time",
|
|
8287
|
+
"Australia/Eucla": "Aus Central W. Standard Time",
|
|
8288
|
+
"Australia/Hobart": "Tasmania Standard Time",
|
|
8289
|
+
"Australia/Lindeman": "E. Australia Standard Time",
|
|
8290
|
+
"Australia/Lord_Howe": "Lord Howe Standard Time",
|
|
8291
|
+
"Australia/Melbourne": "AUS Eastern Standard Time",
|
|
8292
|
+
"Australia/Perth": "W. Australia Standard Time",
|
|
8293
|
+
"Australia/Sydney": "AUS Eastern Standard Time",
|
|
8294
|
+
"Etc/GMT": "UTC",
|
|
8295
|
+
"Etc/GMT-1": "W. Central Africa Standard Time",
|
|
8296
|
+
"Etc/GMT-10": "West Pacific Standard Time",
|
|
8297
|
+
"Etc/GMT-11": "Central Pacific Standard Time",
|
|
8298
|
+
"Etc/GMT-12": "UTC+12",
|
|
8299
|
+
"Etc/GMT-13": "UTC+13",
|
|
8300
|
+
"Etc/GMT-14": "Line Islands Standard Time",
|
|
8301
|
+
"Etc/GMT-2": "South Africa Standard Time",
|
|
8302
|
+
"Etc/GMT-3": "E. Africa Standard Time",
|
|
8303
|
+
"Etc/GMT-4": "Arabian Standard Time",
|
|
8304
|
+
"Etc/GMT-5": "West Asia Standard Time",
|
|
8305
|
+
"Etc/GMT-6": "Central Asia Standard Time",
|
|
8306
|
+
"Etc/GMT-7": "SE Asia Standard Time",
|
|
8307
|
+
"Etc/GMT-8": "Singapore Standard Time",
|
|
8308
|
+
"Etc/GMT-9": "Tokyo Standard Time",
|
|
8309
|
+
"Etc/GMT+1": "Cape Verde Standard Time",
|
|
8310
|
+
"Etc/GMT+10": "Hawaiian Standard Time",
|
|
8311
|
+
"Etc/GMT+11": "UTC-11",
|
|
8312
|
+
"Etc/GMT+12": "Dateline Standard Time",
|
|
8313
|
+
"Etc/GMT+2": "UTC-02",
|
|
8314
|
+
"Etc/GMT+3": "SA Eastern Standard Time",
|
|
8315
|
+
"Etc/GMT+4": "SA Western Standard Time",
|
|
8316
|
+
"Etc/GMT+5": "SA Pacific Standard Time",
|
|
8317
|
+
"Etc/GMT+6": "Central America Standard Time",
|
|
8318
|
+
"Etc/GMT+7": "US Mountain Standard Time",
|
|
8319
|
+
"Etc/GMT+8": "UTC-08",
|
|
8320
|
+
"Etc/GMT+9": "UTC-09",
|
|
8321
|
+
"Etc/UTC": "UTC",
|
|
8322
|
+
"Europe/Amsterdam": "W. Europe Standard Time",
|
|
8323
|
+
"Europe/Andorra": "W. Europe Standard Time",
|
|
8324
|
+
"Europe/Astrakhan": "Astrakhan Standard Time",
|
|
8325
|
+
"Europe/Athens": "GTB Standard Time",
|
|
8326
|
+
"Europe/Belgrade": "Central Europe Standard Time",
|
|
8327
|
+
"Europe/Berlin": "W. Europe Standard Time",
|
|
8328
|
+
"Europe/Bratislava": "Central Europe Standard Time",
|
|
8329
|
+
"Europe/Brussels": "Romance Standard Time",
|
|
8330
|
+
"Europe/Bucharest": "GTB Standard Time",
|
|
8331
|
+
"Europe/Budapest": "Central Europe Standard Time",
|
|
8332
|
+
"Europe/Busingen": "W. Europe Standard Time",
|
|
8333
|
+
"Europe/Chisinau": "E. Europe Standard Time",
|
|
8334
|
+
"Europe/Copenhagen": "Romance Standard Time",
|
|
8335
|
+
"Europe/Dublin": "GMT Standard Time",
|
|
8336
|
+
"Europe/Gibraltar": "W. Europe Standard Time",
|
|
8337
|
+
"Europe/Guernsey": "GMT Standard Time",
|
|
8338
|
+
"Europe/Helsinki": "FLE Standard Time",
|
|
8339
|
+
"Europe/Isle_of_Man": "GMT Standard Time",
|
|
8340
|
+
"Europe/Istanbul": "Turkey Standard Time",
|
|
8341
|
+
"Europe/Jersey": "GMT Standard Time",
|
|
8342
|
+
"Europe/Kaliningrad": "Kaliningrad Standard Time",
|
|
8343
|
+
"Europe/Kiev": "FLE Standard Time",
|
|
8344
|
+
"Europe/Kirov": "Russian Standard Time",
|
|
8345
|
+
"Europe/Lisbon": "GMT Standard Time",
|
|
8346
|
+
"Europe/Ljubljana": "Central Europe Standard Time",
|
|
8347
|
+
"Europe/London": "GMT Standard Time",
|
|
8348
|
+
"Europe/Luxembourg": "W. Europe Standard Time",
|
|
8349
|
+
"Europe/Madrid": "Romance Standard Time",
|
|
8350
|
+
"Europe/Malta": "W. Europe Standard Time",
|
|
8351
|
+
"Europe/Mariehamn": "FLE Standard Time",
|
|
8352
|
+
"Europe/Minsk": "Belarus Standard Time",
|
|
8353
|
+
"Europe/Monaco": "W. Europe Standard Time",
|
|
8354
|
+
"Europe/Moscow": "Russian Standard Time",
|
|
8355
|
+
"Europe/Oslo": "W. Europe Standard Time",
|
|
8356
|
+
"Europe/Paris": "Romance Standard Time",
|
|
8357
|
+
"Europe/Podgorica": "Central Europe Standard Time",
|
|
8358
|
+
"Europe/Prague": "Central Europe Standard Time",
|
|
8359
|
+
"Europe/Riga": "FLE Standard Time",
|
|
8360
|
+
"Europe/Rome": "W. Europe Standard Time",
|
|
8361
|
+
"Europe/Samara": "Russia Time Zone 3",
|
|
8362
|
+
"Europe/San_Marino": "W. Europe Standard Time",
|
|
8363
|
+
"Europe/Sarajevo": "Central European Standard Time",
|
|
8364
|
+
"Europe/Saratov": "Saratov Standard Time",
|
|
8365
|
+
"Europe/Simferopol": "Russian Standard Time",
|
|
8366
|
+
"Europe/Skopje": "Central European Standard Time",
|
|
8367
|
+
"Europe/Sofia": "FLE Standard Time",
|
|
8368
|
+
"Europe/Stockholm": "W. Europe Standard Time",
|
|
8369
|
+
"Europe/Tallinn": "FLE Standard Time",
|
|
8370
|
+
"Europe/Tirane": "Central Europe Standard Time",
|
|
8371
|
+
"Europe/Ulyanovsk": "Astrakhan Standard Time",
|
|
8372
|
+
"Europe/Vaduz": "W. Europe Standard Time",
|
|
8373
|
+
"Europe/Vatican": "W. Europe Standard Time",
|
|
8374
|
+
"Europe/Vienna": "W. Europe Standard Time",
|
|
8375
|
+
"Europe/Vilnius": "FLE Standard Time",
|
|
8376
|
+
"Europe/Volgograd": "Volgograd Standard Time",
|
|
8377
|
+
"Europe/Warsaw": "Central European Standard Time",
|
|
8378
|
+
"Europe/Zagreb": "Central European Standard Time",
|
|
8379
|
+
"Europe/Zurich": "W. Europe Standard Time",
|
|
8380
|
+
"Indian/Antananarivo": "E. Africa Standard Time",
|
|
8381
|
+
"Indian/Chagos": "Central Asia Standard Time",
|
|
8382
|
+
"Indian/Christmas": "SE Asia Standard Time",
|
|
8383
|
+
"Indian/Cocos": "Myanmar Standard Time",
|
|
8384
|
+
"Indian/Comoro": "E. Africa Standard Time",
|
|
8385
|
+
"Indian/Kerguelen": "West Asia Standard Time",
|
|
8386
|
+
"Indian/Mahe": "Mauritius Standard Time",
|
|
8387
|
+
"Indian/Maldives": "West Asia Standard Time",
|
|
8388
|
+
"Indian/Mauritius": "Mauritius Standard Time",
|
|
8389
|
+
"Indian/Mayotte": "E. Africa Standard Time",
|
|
8390
|
+
"Indian/Reunion": "Mauritius Standard Time",
|
|
8391
|
+
"Pacific/Apia": "Samoa Standard Time",
|
|
8392
|
+
"Pacific/Auckland": "New Zealand Standard Time",
|
|
8393
|
+
"Pacific/Bougainville": "Bougainville Standard Time",
|
|
8394
|
+
"Pacific/Chatham": "Chatham Islands Standard Time",
|
|
8395
|
+
"Pacific/Easter": "Easter Island Standard Time",
|
|
8396
|
+
"Pacific/Efate": "Central Pacific Standard Time",
|
|
8397
|
+
"Pacific/Enderbury": "UTC+13",
|
|
8398
|
+
"Pacific/Fakaofo": "UTC+13",
|
|
8399
|
+
"Pacific/Fiji": "Fiji Standard Time",
|
|
8400
|
+
"Pacific/Funafuti": "UTC+12",
|
|
8401
|
+
"Pacific/Galapagos": "Central America Standard Time",
|
|
8402
|
+
"Pacific/Gambier": "UTC-09",
|
|
8403
|
+
"Pacific/Guadalcanal": "Central Pacific Standard Time",
|
|
8404
|
+
"Pacific/Guam": "West Pacific Standard Time",
|
|
8405
|
+
"Pacific/Honolulu": "Hawaiian Standard Time",
|
|
8406
|
+
"Pacific/Kiritimati": "Line Islands Standard Time",
|
|
8407
|
+
"Pacific/Kosrae": "Central Pacific Standard Time",
|
|
8408
|
+
"Pacific/Kwajalein": "UTC+12",
|
|
8409
|
+
"Pacific/Majuro": "UTC+12",
|
|
8410
|
+
"Pacific/Marquesas": "Marquesas Standard Time",
|
|
8411
|
+
"Pacific/Midway": "UTC-11",
|
|
8412
|
+
"Pacific/Nauru": "UTC+12",
|
|
8413
|
+
"Pacific/Niue": "UTC-11",
|
|
8414
|
+
"Pacific/Norfolk": "Norfolk Standard Time",
|
|
8415
|
+
"Pacific/Noumea": "Central Pacific Standard Time",
|
|
8416
|
+
"Pacific/Pago_Pago": "UTC-11",
|
|
8417
|
+
"Pacific/Palau": "Tokyo Standard Time",
|
|
8418
|
+
"Pacific/Pitcairn": "UTC-08",
|
|
8419
|
+
"Pacific/Ponape": "Central Pacific Standard Time",
|
|
8420
|
+
"Pacific/Port_Moresby": "West Pacific Standard Time",
|
|
8421
|
+
"Pacific/Rarotonga": "Hawaiian Standard Time",
|
|
8422
|
+
"Pacific/Saipan": "West Pacific Standard Time",
|
|
8423
|
+
"Pacific/Tahiti": "Hawaiian Standard Time",
|
|
8424
|
+
"Pacific/Tarawa": "UTC+12",
|
|
8425
|
+
"Pacific/Tongatapu": "Tonga Standard Time",
|
|
8426
|
+
"Pacific/Truk": "West Pacific Standard Time",
|
|
8427
|
+
"Pacific/Wake": "UTC+12",
|
|
8428
|
+
"Pacific/Wallis": "UTC+12"
|
|
8429
|
+
}
|
|
8430
|
+
);
|
|
8431
|
+
var windowsToIanaMap = (() => {
|
|
8432
|
+
const reverseMap = /* @__PURE__ */ Object.create(null);
|
|
8433
|
+
for (const [iana, windows] of Object.entries(ianaToWindowsMap)) {
|
|
8434
|
+
const existing = reverseMap[windows];
|
|
8435
|
+
if (existing) {
|
|
8436
|
+
existing.push(iana);
|
|
8437
|
+
} else {
|
|
8438
|
+
reverseMap[windows] = [iana];
|
|
8439
|
+
}
|
|
8440
|
+
}
|
|
8441
|
+
return reverseMap;
|
|
8442
|
+
})();
|
|
8443
|
+
|
|
8444
|
+
// src/index.ts
|
|
8445
|
+
function findWindowsFromIana(ianaTimezone) {
|
|
8446
|
+
return ianaToWindowsMap[ianaTimezone];
|
|
8447
|
+
}
|
|
8448
|
+
function findIanaFromWindows(windowsTimezone) {
|
|
8449
|
+
return windowsToIanaMap[windowsTimezone];
|
|
8450
|
+
}
|
|
8451
|
+
|
|
8452
|
+
//# sourceMappingURL=index.mjs.map
|
|
8453
|
+
|
|
7972
8454
|
/***/ }),
|
|
7973
8455
|
|
|
7974
8456
|
/***/ 35892:
|
|
@@ -21100,6 +21582,402 @@ __exportStar(__webpack_require__(81166), exports);
|
|
|
21100
21582
|
__exportStar(__webpack_require__(78904), exports);
|
|
21101
21583
|
|
|
21102
21584
|
|
|
21585
|
+
/***/ }),
|
|
21586
|
+
|
|
21587
|
+
/***/ 49585:
|
|
21588
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
21589
|
+
|
|
21590
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21591
|
+
/* harmony export */ Ou: () => (/* binding */ StructuredTool),
|
|
21592
|
+
/* harmony export */ on: () => (/* binding */ tools_exports),
|
|
21593
|
+
/* harmony export */ z6: () => (/* binding */ tool)
|
|
21594
|
+
/* harmony export */ });
|
|
21595
|
+
/* unused harmony exports BaseToolkit, DynamicStructuredTool, DynamicTool, Tool */
|
|
21596
|
+
/* harmony import */ var _virtual_rolldown_runtime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27217);
|
|
21597
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39954);
|
|
21598
|
+
/* harmony import */ var _messages_tool_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42512);
|
|
21599
|
+
/* harmony import */ var _callbacks_manager_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21764);
|
|
21600
|
+
/* harmony import */ var _singletons_async_local_storage_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21291);
|
|
21601
|
+
/* harmony import */ var _singletons_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(55856);
|
|
21602
|
+
/* harmony import */ var _runnables_config_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(21436);
|
|
21603
|
+
/* harmony import */ var _utils_signal_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7409);
|
|
21604
|
+
/* harmony import */ var _utils_types_zod_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(30898);
|
|
21605
|
+
/* harmony import */ var _utils_json_schema_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12668);
|
|
21606
|
+
/* harmony import */ var _runnables_iter_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12588);
|
|
21607
|
+
/* harmony import */ var _language_models_base_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(51322);
|
|
21608
|
+
/* harmony import */ var _types_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(56862);
|
|
21609
|
+
/* harmony import */ var zod_v3__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(67106);
|
|
21610
|
+
/* harmony import */ var _cfworker_json_schema__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(55209);
|
|
21611
|
+
/* harmony import */ var zod_v4__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(11230);
|
|
21612
|
+
|
|
21613
|
+
|
|
21614
|
+
|
|
21615
|
+
|
|
21616
|
+
|
|
21617
|
+
|
|
21618
|
+
|
|
21619
|
+
|
|
21620
|
+
|
|
21621
|
+
|
|
21622
|
+
|
|
21623
|
+
|
|
21624
|
+
|
|
21625
|
+
|
|
21626
|
+
|
|
21627
|
+
|
|
21628
|
+
//#region src/tools/index.ts
|
|
21629
|
+
var tools_exports = /* @__PURE__ */ (0,_virtual_rolldown_runtime_js__WEBPACK_IMPORTED_MODULE_0__/* .__exportAll */ .I)({
|
|
21630
|
+
BaseToolkit: () => BaseToolkit,
|
|
21631
|
+
DynamicStructuredTool: () => DynamicStructuredTool,
|
|
21632
|
+
DynamicTool: () => DynamicTool,
|
|
21633
|
+
StructuredTool: () => StructuredTool,
|
|
21634
|
+
Tool: () => Tool,
|
|
21635
|
+
ToolInputParsingException: () => _utils_js__WEBPACK_IMPORTED_MODULE_1__/* .ToolInputParsingException */ .qe,
|
|
21636
|
+
isLangChainTool: () => _types_js__WEBPACK_IMPORTED_MODULE_10__/* .isLangChainTool */ .qG,
|
|
21637
|
+
isRunnableToolLike: () => _types_js__WEBPACK_IMPORTED_MODULE_10__/* .isRunnableToolLike */ .Lx,
|
|
21638
|
+
isStructuredTool: () => _types_js__WEBPACK_IMPORTED_MODULE_10__/* .isStructuredTool */ .Yn,
|
|
21639
|
+
isStructuredToolParams: () => _types_js__WEBPACK_IMPORTED_MODULE_10__/* .isStructuredToolParams */ .Am,
|
|
21640
|
+
tool: () => tool
|
|
21641
|
+
});
|
|
21642
|
+
/**
|
|
21643
|
+
* Base class for Tools that accept input of any shape defined by a Zod schema.
|
|
21644
|
+
*/
|
|
21645
|
+
var StructuredTool = class extends _language_models_base_js__WEBPACK_IMPORTED_MODULE_9__/* .BaseLangChain */ .ZE {
|
|
21646
|
+
/**
|
|
21647
|
+
* Optional provider-specific extra fields for the tool.
|
|
21648
|
+
*
|
|
21649
|
+
* This is used to pass provider-specific configuration that doesn't fit into
|
|
21650
|
+
* standard tool fields.
|
|
21651
|
+
*/
|
|
21652
|
+
extras;
|
|
21653
|
+
/**
|
|
21654
|
+
* Whether to return the tool's output directly.
|
|
21655
|
+
*
|
|
21656
|
+
* Setting this to true means that after the tool is called,
|
|
21657
|
+
* an agent should stop looping.
|
|
21658
|
+
*/
|
|
21659
|
+
returnDirect = false;
|
|
21660
|
+
verboseParsingErrors = false;
|
|
21661
|
+
get lc_namespace() {
|
|
21662
|
+
return ["langchain", "tools"];
|
|
21663
|
+
}
|
|
21664
|
+
/**
|
|
21665
|
+
* The tool response format.
|
|
21666
|
+
*
|
|
21667
|
+
* If "content" then the output of the tool is interpreted as the contents of a
|
|
21668
|
+
* ToolMessage. If "content_and_artifact" then the output is expected to be a
|
|
21669
|
+
* two-tuple corresponding to the (content, artifact) of a ToolMessage.
|
|
21670
|
+
*
|
|
21671
|
+
* @default "content"
|
|
21672
|
+
*/
|
|
21673
|
+
responseFormat = "content";
|
|
21674
|
+
/**
|
|
21675
|
+
* Default config object for the tool runnable.
|
|
21676
|
+
*/
|
|
21677
|
+
defaultConfig;
|
|
21678
|
+
constructor(fields) {
|
|
21679
|
+
super(fields ?? {});
|
|
21680
|
+
this.verboseParsingErrors = fields?.verboseParsingErrors ?? this.verboseParsingErrors;
|
|
21681
|
+
this.responseFormat = fields?.responseFormat ?? this.responseFormat;
|
|
21682
|
+
this.defaultConfig = fields?.defaultConfig ?? this.defaultConfig;
|
|
21683
|
+
this.metadata = fields?.metadata ?? this.metadata;
|
|
21684
|
+
this.extras = fields?.extras ?? this.extras;
|
|
21685
|
+
}
|
|
21686
|
+
/**
|
|
21687
|
+
* Invokes the tool with the provided input and configuration.
|
|
21688
|
+
* @param input The input for the tool.
|
|
21689
|
+
* @param config Optional configuration for the tool.
|
|
21690
|
+
* @returns A Promise that resolves with the tool's output.
|
|
21691
|
+
*/
|
|
21692
|
+
async invoke(input, config) {
|
|
21693
|
+
let toolInput;
|
|
21694
|
+
let enrichedConfig = (0,_runnables_config_js__WEBPACK_IMPORTED_MODULE_6__/* .ensureConfig */ .ZI)((0,_runnables_config_js__WEBPACK_IMPORTED_MODULE_6__/* .mergeConfigs */ .SV)(this.defaultConfig, config));
|
|
21695
|
+
if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__/* ._isToolCall */ .Ky)(input)) {
|
|
21696
|
+
toolInput = input.args;
|
|
21697
|
+
enrichedConfig = {
|
|
21698
|
+
...enrichedConfig,
|
|
21699
|
+
toolCall: input
|
|
21700
|
+
};
|
|
21701
|
+
} else toolInput = input;
|
|
21702
|
+
return this.call(toolInput, enrichedConfig);
|
|
21703
|
+
}
|
|
21704
|
+
/**
|
|
21705
|
+
* @deprecated Use .invoke() instead. Will be removed in 0.3.0.
|
|
21706
|
+
*
|
|
21707
|
+
* Calls the tool with the provided argument, configuration, and tags. It
|
|
21708
|
+
* parses the input according to the schema, handles any errors, and
|
|
21709
|
+
* manages callbacks.
|
|
21710
|
+
* @param arg The input argument for the tool.
|
|
21711
|
+
* @param configArg Optional configuration or callbacks for the tool.
|
|
21712
|
+
* @param tags Optional tags for the tool.
|
|
21713
|
+
* @returns A Promise that resolves with a string.
|
|
21714
|
+
*/
|
|
21715
|
+
async call(arg, configArg, tags) {
|
|
21716
|
+
const inputForValidation = (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__/* ._isToolCall */ .Ky)(arg) ? arg.args : arg;
|
|
21717
|
+
let parsed;
|
|
21718
|
+
if ((0,_utils_types_zod_js__WEBPACK_IMPORTED_MODULE_12__/* .isInteropZodSchema */ .c9)(this.schema)) try {
|
|
21719
|
+
parsed = await (0,_utils_types_zod_js__WEBPACK_IMPORTED_MODULE_12__/* .interopParseAsync */ .hZ)(this.schema, inputForValidation);
|
|
21720
|
+
} catch (e) {
|
|
21721
|
+
let message = `Received tool input did not match expected schema`;
|
|
21722
|
+
if (this.verboseParsingErrors) message = `${message}\nDetails: ${e.message}`;
|
|
21723
|
+
if ((0,_utils_types_zod_js__WEBPACK_IMPORTED_MODULE_12__/* .isInteropZodError */ .BZ)(e)) message = `${message}\n\n${zod_v4__WEBPACK_IMPORTED_MODULE_13__/* .prettifyError */ .S1(e)}`;
|
|
21724
|
+
throw new _utils_js__WEBPACK_IMPORTED_MODULE_1__/* .ToolInputParsingException */ .qe(message, JSON.stringify(arg));
|
|
21725
|
+
}
|
|
21726
|
+
else {
|
|
21727
|
+
const result = (0,_cfworker_json_schema__WEBPACK_IMPORTED_MODULE_11__/* .validate */ .tf)(inputForValidation, this.schema);
|
|
21728
|
+
if (!result.valid) {
|
|
21729
|
+
let message = `Received tool input did not match expected schema`;
|
|
21730
|
+
if (this.verboseParsingErrors) message = `${message}\nDetails: ${result.errors.map((e) => `${e.keywordLocation}: ${e.error}`).join("\n")}`;
|
|
21731
|
+
throw new _utils_js__WEBPACK_IMPORTED_MODULE_1__/* .ToolInputParsingException */ .qe(message, JSON.stringify(arg));
|
|
21732
|
+
}
|
|
21733
|
+
parsed = inputForValidation;
|
|
21734
|
+
}
|
|
21735
|
+
const config = (0,_callbacks_manager_js__WEBPACK_IMPORTED_MODULE_3__/* .parseCallbackConfigArg */ .H_)(configArg);
|
|
21736
|
+
const callbackManager_ = _callbacks_manager_js__WEBPACK_IMPORTED_MODULE_3__/* .CallbackManager */ .Td.configure(config.callbacks, this.callbacks, config.tags || tags, this.tags, config.metadata, this.metadata, { verbose: this.verbose });
|
|
21737
|
+
let toolCallId;
|
|
21738
|
+
if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__/* ._isToolCall */ .Ky)(arg)) toolCallId = arg.id;
|
|
21739
|
+
if (!toolCallId && (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__/* ._configHasToolCallId */ .hR)(config)) toolCallId = config.toolCall.id;
|
|
21740
|
+
let callbackInput;
|
|
21741
|
+
if (typeof inputForValidation === "object" && inputForValidation !== null && !Array.isArray(inputForValidation)) callbackInput = inputForValidation;
|
|
21742
|
+
if (!callbackInput) callbackInput = typeof arg === "string" ? arg : JSON.stringify(arg);
|
|
21743
|
+
const runManager = await callbackManager_?.handleToolStart(this.toJSON(), callbackInput, config.runId, void 0, void 0, void 0, config.runName, toolCallId);
|
|
21744
|
+
delete config.runId;
|
|
21745
|
+
let result;
|
|
21746
|
+
try {
|
|
21747
|
+
const raw = await this._call(parsed, runManager, config);
|
|
21748
|
+
result = (0,_runnables_iter_js__WEBPACK_IMPORTED_MODULE_8__/* .isAsyncGenerator */ .aU)(raw) ? await (0,_runnables_iter_js__WEBPACK_IMPORTED_MODULE_8__/* .consumeAsyncGenerator */ .Et)(raw, async (chunk) => {
|
|
21749
|
+
try {
|
|
21750
|
+
await runManager?.handleToolEvent(chunk);
|
|
21751
|
+
} catch (streamError) {
|
|
21752
|
+
await runManager?.handleToolError(streamError);
|
|
21753
|
+
}
|
|
21754
|
+
}) : raw;
|
|
21755
|
+
} catch (e) {
|
|
21756
|
+
await runManager?.handleToolError(e);
|
|
21757
|
+
throw e;
|
|
21758
|
+
}
|
|
21759
|
+
let content;
|
|
21760
|
+
let artifact;
|
|
21761
|
+
if (this.responseFormat === "content_and_artifact") {
|
|
21762
|
+
if (Array.isArray(result) && result.length === 2) [content, artifact] = result;
|
|
21763
|
+
else throw new Error(`Tool response format is "content_and_artifact" but the output was not a two-tuple.\nResult: ${JSON.stringify(result)}`);
|
|
21764
|
+
} else content = result;
|
|
21765
|
+
const formattedOutput = _formatToolOutput({
|
|
21766
|
+
content,
|
|
21767
|
+
artifact,
|
|
21768
|
+
toolCallId,
|
|
21769
|
+
name: this.name,
|
|
21770
|
+
metadata: this.metadata
|
|
21771
|
+
});
|
|
21772
|
+
await runManager?.handleToolEnd(formattedOutput);
|
|
21773
|
+
return formattedOutput;
|
|
21774
|
+
}
|
|
21775
|
+
};
|
|
21776
|
+
/**
|
|
21777
|
+
* Base class for Tools that accept input as a string.
|
|
21778
|
+
*/
|
|
21779
|
+
var Tool = class extends StructuredTool {
|
|
21780
|
+
schema = zod_v3__WEBPACK_IMPORTED_MODULE_14__/* .object */ .Ik({ input: zod_v3__WEBPACK_IMPORTED_MODULE_14__/* .string */ .Yj().optional() }).transform((obj) => obj.input);
|
|
21781
|
+
constructor(fields) {
|
|
21782
|
+
super(fields);
|
|
21783
|
+
}
|
|
21784
|
+
/**
|
|
21785
|
+
* @deprecated Use .invoke() instead. Will be removed in 0.3.0.
|
|
21786
|
+
*
|
|
21787
|
+
* Calls the tool with the provided argument and callbacks. It handles
|
|
21788
|
+
* string inputs specifically.
|
|
21789
|
+
* @param arg The input argument for the tool, which can be a string, undefined, or an input of the tool's schema.
|
|
21790
|
+
* @param callbacks Optional callbacks for the tool.
|
|
21791
|
+
* @returns A Promise that resolves with a string.
|
|
21792
|
+
*/
|
|
21793
|
+
call(arg, callbacks) {
|
|
21794
|
+
const structuredArg = typeof arg === "string" || arg == null ? { input: arg } : arg;
|
|
21795
|
+
return super.call(structuredArg, callbacks);
|
|
21796
|
+
}
|
|
21797
|
+
};
|
|
21798
|
+
/**
|
|
21799
|
+
* A tool that can be created dynamically from a function, name, and description.
|
|
21800
|
+
*/
|
|
21801
|
+
var DynamicTool = class extends Tool {
|
|
21802
|
+
static lc_name() {
|
|
21803
|
+
return "DynamicTool";
|
|
21804
|
+
}
|
|
21805
|
+
name;
|
|
21806
|
+
description;
|
|
21807
|
+
func;
|
|
21808
|
+
constructor(fields) {
|
|
21809
|
+
super(fields);
|
|
21810
|
+
this.name = fields.name;
|
|
21811
|
+
this.description = fields.description;
|
|
21812
|
+
this.func = fields.func;
|
|
21813
|
+
this.returnDirect = fields.returnDirect ?? this.returnDirect;
|
|
21814
|
+
}
|
|
21815
|
+
/**
|
|
21816
|
+
* @deprecated Use .invoke() instead. Will be removed in 0.3.0.
|
|
21817
|
+
*/
|
|
21818
|
+
async call(arg, configArg) {
|
|
21819
|
+
const config = (0,_callbacks_manager_js__WEBPACK_IMPORTED_MODULE_3__/* .parseCallbackConfigArg */ .H_)(configArg);
|
|
21820
|
+
if (config.runName === void 0) config.runName = this.name;
|
|
21821
|
+
return super.call(arg, config);
|
|
21822
|
+
}
|
|
21823
|
+
/** @ignore */
|
|
21824
|
+
_call(input, runManager, parentConfig) {
|
|
21825
|
+
return this.func(input, runManager, parentConfig);
|
|
21826
|
+
}
|
|
21827
|
+
};
|
|
21828
|
+
/**
|
|
21829
|
+
* A tool that can be created dynamically from a function, name, and
|
|
21830
|
+
* description, designed to work with structured data. It extends the
|
|
21831
|
+
* StructuredTool class and overrides the _call method to execute the
|
|
21832
|
+
* provided function when the tool is called.
|
|
21833
|
+
*
|
|
21834
|
+
* Schema can be passed as Zod or JSON schema. The tool will not validate
|
|
21835
|
+
* input if JSON schema is passed.
|
|
21836
|
+
*
|
|
21837
|
+
* @template SchemaT The input schema type for the tool (Zod schema or JSON schema). Defaults to `ToolInputSchemaBase`.
|
|
21838
|
+
* @template SchemaOutputT The output type derived from the schema after parsing/validation. Defaults to `ToolInputSchemaOutputType<SchemaT>`.
|
|
21839
|
+
* @template SchemaInputT The input type derived from the schema before parsing. Defaults to `ToolInputSchemaInputType<SchemaT>`.
|
|
21840
|
+
* @template ToolOutputT The return type of the tool's function. Defaults to `ToolOutputType`.
|
|
21841
|
+
* @template NameT The literal type of the tool name (for discriminated union support). Defaults to `string`.
|
|
21842
|
+
*/
|
|
21843
|
+
var DynamicStructuredTool = class extends StructuredTool {
|
|
21844
|
+
static lc_name() {
|
|
21845
|
+
return "DynamicStructuredTool";
|
|
21846
|
+
}
|
|
21847
|
+
description;
|
|
21848
|
+
func;
|
|
21849
|
+
schema;
|
|
21850
|
+
constructor(fields) {
|
|
21851
|
+
super(fields);
|
|
21852
|
+
this.name = fields.name;
|
|
21853
|
+
this.description = fields.description;
|
|
21854
|
+
this.func = fields.func;
|
|
21855
|
+
this.returnDirect = fields.returnDirect ?? this.returnDirect;
|
|
21856
|
+
this.schema = fields.schema;
|
|
21857
|
+
}
|
|
21858
|
+
/**
|
|
21859
|
+
* @deprecated Use .invoke() instead. Will be removed in 0.3.0.
|
|
21860
|
+
*/
|
|
21861
|
+
async call(arg, configArg, tags) {
|
|
21862
|
+
const config = (0,_callbacks_manager_js__WEBPACK_IMPORTED_MODULE_3__/* .parseCallbackConfigArg */ .H_)(configArg);
|
|
21863
|
+
if (config.runName === void 0) config.runName = this.name;
|
|
21864
|
+
return super.call(arg, config, tags);
|
|
21865
|
+
}
|
|
21866
|
+
_call(arg, runManager, parentConfig) {
|
|
21867
|
+
return this.func(arg, runManager, parentConfig);
|
|
21868
|
+
}
|
|
21869
|
+
};
|
|
21870
|
+
/**
|
|
21871
|
+
* Abstract base class for toolkits in LangChain. Toolkits are collections
|
|
21872
|
+
* of tools that agents can use. Subclasses must implement the `tools`
|
|
21873
|
+
* property to provide the specific tools for the toolkit.
|
|
21874
|
+
*/
|
|
21875
|
+
var BaseToolkit = class {
|
|
21876
|
+
getTools() {
|
|
21877
|
+
return this.tools;
|
|
21878
|
+
}
|
|
21879
|
+
};
|
|
21880
|
+
function tool(func, fields) {
|
|
21881
|
+
const isSimpleStringSchema = (0,_utils_types_zod_js__WEBPACK_IMPORTED_MODULE_12__/* .isSimpleStringZodSchema */ .yQ)(fields.schema);
|
|
21882
|
+
const isStringJSONSchema = (0,_utils_json_schema_js__WEBPACK_IMPORTED_MODULE_7__/* .validatesOnlyStrings */ .y0)(fields.schema);
|
|
21883
|
+
if (!fields.schema || isSimpleStringSchema || isStringJSONSchema) return new DynamicTool({
|
|
21884
|
+
...fields,
|
|
21885
|
+
description: fields.description ?? fields.schema?.description ?? `${fields.name} tool`,
|
|
21886
|
+
func: async (input, runManager, config) => {
|
|
21887
|
+
return new Promise((resolve, reject) => {
|
|
21888
|
+
const childConfig = (0,_runnables_config_js__WEBPACK_IMPORTED_MODULE_6__/* .patchConfig */ .tn)(config, { callbacks: runManager?.getChild() });
|
|
21889
|
+
_singletons_async_local_storage_index_js__WEBPACK_IMPORTED_MODULE_4__/* .AsyncLocalStorageProviderSingleton */ .N.runWithConfig((0,_runnables_config_js__WEBPACK_IMPORTED_MODULE_6__/* .pickRunnableConfigKeys */ .DY)(childConfig), async () => {
|
|
21890
|
+
try {
|
|
21891
|
+
resolve(func(input, childConfig));
|
|
21892
|
+
} catch (e) {
|
|
21893
|
+
reject(e);
|
|
21894
|
+
}
|
|
21895
|
+
});
|
|
21896
|
+
});
|
|
21897
|
+
}
|
|
21898
|
+
});
|
|
21899
|
+
const schema = fields.schema;
|
|
21900
|
+
const description = fields.description ?? fields.schema.description ?? `${fields.name} tool`;
|
|
21901
|
+
return new DynamicStructuredTool({
|
|
21902
|
+
...fields,
|
|
21903
|
+
description,
|
|
21904
|
+
schema,
|
|
21905
|
+
func: async (input, runManager, config) => {
|
|
21906
|
+
return new Promise((resolve, reject) => {
|
|
21907
|
+
let listener;
|
|
21908
|
+
const cleanup = () => {
|
|
21909
|
+
if (config?.signal && listener) config.signal.removeEventListener("abort", listener);
|
|
21910
|
+
};
|
|
21911
|
+
if (config?.signal) {
|
|
21912
|
+
listener = () => {
|
|
21913
|
+
cleanup();
|
|
21914
|
+
reject((0,_utils_signal_js__WEBPACK_IMPORTED_MODULE_15__/* .getAbortSignalError */ .F)(config.signal));
|
|
21915
|
+
};
|
|
21916
|
+
config.signal.addEventListener("abort", listener, { once: true });
|
|
21917
|
+
}
|
|
21918
|
+
const childConfig = (0,_runnables_config_js__WEBPACK_IMPORTED_MODULE_6__/* .patchConfig */ .tn)(config, { callbacks: runManager?.getChild() });
|
|
21919
|
+
_singletons_async_local_storage_index_js__WEBPACK_IMPORTED_MODULE_4__/* .AsyncLocalStorageProviderSingleton */ .N.runWithConfig((0,_runnables_config_js__WEBPACK_IMPORTED_MODULE_6__/* .pickRunnableConfigKeys */ .DY)(childConfig), async () => {
|
|
21920
|
+
try {
|
|
21921
|
+
const result = await func(input, childConfig);
|
|
21922
|
+
if ((0,_runnables_iter_js__WEBPACK_IMPORTED_MODULE_8__/* .isAsyncGenerator */ .aU)(result)) {
|
|
21923
|
+
resolve(result);
|
|
21924
|
+
return;
|
|
21925
|
+
}
|
|
21926
|
+
/**
|
|
21927
|
+
* If the signal is aborted, we don't want to resolve the promise
|
|
21928
|
+
* as the promise is already rejected.
|
|
21929
|
+
*/
|
|
21930
|
+
if (config?.signal?.aborted) {
|
|
21931
|
+
cleanup();
|
|
21932
|
+
return;
|
|
21933
|
+
}
|
|
21934
|
+
cleanup();
|
|
21935
|
+
resolve(result);
|
|
21936
|
+
} catch (e) {
|
|
21937
|
+
cleanup();
|
|
21938
|
+
reject(e);
|
|
21939
|
+
}
|
|
21940
|
+
});
|
|
21941
|
+
});
|
|
21942
|
+
}
|
|
21943
|
+
});
|
|
21944
|
+
}
|
|
21945
|
+
function _isMessageContentBlockShaped(item) {
|
|
21946
|
+
return typeof item === "object" && item !== null && "type" in item;
|
|
21947
|
+
}
|
|
21948
|
+
function _formatToolOutput(params) {
|
|
21949
|
+
const { content, artifact, toolCallId, metadata } = params;
|
|
21950
|
+
if (toolCallId && !(0,_messages_tool_js__WEBPACK_IMPORTED_MODULE_2__/* .isDirectToolOutput */ .fK)(content)) {
|
|
21951
|
+
if (typeof content === "string" || Array.isArray(content) && content.every(_isMessageContentBlockShaped)) return new _messages_tool_js__WEBPACK_IMPORTED_MODULE_2__/* .ToolMessage */ .uf({
|
|
21952
|
+
status: "success",
|
|
21953
|
+
content,
|
|
21954
|
+
artifact,
|
|
21955
|
+
tool_call_id: toolCallId,
|
|
21956
|
+
name: params.name,
|
|
21957
|
+
metadata
|
|
21958
|
+
});
|
|
21959
|
+
else return new _messages_tool_js__WEBPACK_IMPORTED_MODULE_2__/* .ToolMessage */ .uf({
|
|
21960
|
+
status: "success",
|
|
21961
|
+
content: _stringify(content),
|
|
21962
|
+
artifact,
|
|
21963
|
+
tool_call_id: toolCallId,
|
|
21964
|
+
name: params.name,
|
|
21965
|
+
metadata
|
|
21966
|
+
});
|
|
21967
|
+
} else return content;
|
|
21968
|
+
}
|
|
21969
|
+
function _stringify(content) {
|
|
21970
|
+
try {
|
|
21971
|
+
return JSON.stringify(content) ?? "";
|
|
21972
|
+
} catch (_noOp) {
|
|
21973
|
+
return `${content}`;
|
|
21974
|
+
}
|
|
21975
|
+
}
|
|
21976
|
+
//#endregion
|
|
21977
|
+
|
|
21978
|
+
|
|
21979
|
+
//# sourceMappingURL=index.js.map
|
|
21980
|
+
|
|
21103
21981
|
/***/ }),
|
|
21104
21982
|
|
|
21105
21983
|
/***/ 59189:
|
|
@@ -27061,7 +27939,7 @@ var testing_exports = /* @__PURE__ */ (0,runtime/* __exportAll */.I)({
|
|
|
27061
27939
|
|
|
27062
27940
|
//# sourceMappingURL=index.js.map
|
|
27063
27941
|
// EXTERNAL MODULE: ./node_modules/@langchain/core/dist/tools/index.js
|
|
27064
|
-
var tools = __webpack_require__(
|
|
27942
|
+
var tools = __webpack_require__(49585);
|
|
27065
27943
|
;// ./node_modules/@langchain/core/dist/tracers/run_collector.js
|
|
27066
27944
|
|
|
27067
27945
|
|
|
@@ -31537,402 +32415,6 @@ class CronMinute extends CronField_1.CronField {
|
|
|
31537
32415
|
exports.CronMinute = CronMinute;
|
|
31538
32416
|
|
|
31539
32417
|
|
|
31540
|
-
/***/ }),
|
|
31541
|
-
|
|
31542
|
-
/***/ 71966:
|
|
31543
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
31544
|
-
|
|
31545
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
31546
|
-
/* harmony export */ Ou: () => (/* binding */ StructuredTool),
|
|
31547
|
-
/* harmony export */ on: () => (/* binding */ tools_exports),
|
|
31548
|
-
/* harmony export */ z6: () => (/* binding */ tool)
|
|
31549
|
-
/* harmony export */ });
|
|
31550
|
-
/* unused harmony exports BaseToolkit, DynamicStructuredTool, DynamicTool, Tool */
|
|
31551
|
-
/* harmony import */ var _virtual_rolldown_runtime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27217);
|
|
31552
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39954);
|
|
31553
|
-
/* harmony import */ var _messages_tool_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42512);
|
|
31554
|
-
/* harmony import */ var _callbacks_manager_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21764);
|
|
31555
|
-
/* harmony import */ var _singletons_async_local_storage_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21291);
|
|
31556
|
-
/* harmony import */ var _singletons_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(55856);
|
|
31557
|
-
/* harmony import */ var _runnables_config_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(21436);
|
|
31558
|
-
/* harmony import */ var _utils_signal_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7409);
|
|
31559
|
-
/* harmony import */ var _utils_types_zod_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(30898);
|
|
31560
|
-
/* harmony import */ var _utils_json_schema_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12668);
|
|
31561
|
-
/* harmony import */ var _runnables_iter_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12588);
|
|
31562
|
-
/* harmony import */ var _language_models_base_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(51322);
|
|
31563
|
-
/* harmony import */ var _types_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(56862);
|
|
31564
|
-
/* harmony import */ var zod_v3__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(67106);
|
|
31565
|
-
/* harmony import */ var _cfworker_json_schema__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(55209);
|
|
31566
|
-
/* harmony import */ var zod_v4__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(11230);
|
|
31567
|
-
|
|
31568
|
-
|
|
31569
|
-
|
|
31570
|
-
|
|
31571
|
-
|
|
31572
|
-
|
|
31573
|
-
|
|
31574
|
-
|
|
31575
|
-
|
|
31576
|
-
|
|
31577
|
-
|
|
31578
|
-
|
|
31579
|
-
|
|
31580
|
-
|
|
31581
|
-
|
|
31582
|
-
|
|
31583
|
-
//#region src/tools/index.ts
|
|
31584
|
-
var tools_exports = /* @__PURE__ */ (0,_virtual_rolldown_runtime_js__WEBPACK_IMPORTED_MODULE_0__/* .__exportAll */ .I)({
|
|
31585
|
-
BaseToolkit: () => BaseToolkit,
|
|
31586
|
-
DynamicStructuredTool: () => DynamicStructuredTool,
|
|
31587
|
-
DynamicTool: () => DynamicTool,
|
|
31588
|
-
StructuredTool: () => StructuredTool,
|
|
31589
|
-
Tool: () => Tool,
|
|
31590
|
-
ToolInputParsingException: () => _utils_js__WEBPACK_IMPORTED_MODULE_1__/* .ToolInputParsingException */ .qe,
|
|
31591
|
-
isLangChainTool: () => _types_js__WEBPACK_IMPORTED_MODULE_10__/* .isLangChainTool */ .qG,
|
|
31592
|
-
isRunnableToolLike: () => _types_js__WEBPACK_IMPORTED_MODULE_10__/* .isRunnableToolLike */ .Lx,
|
|
31593
|
-
isStructuredTool: () => _types_js__WEBPACK_IMPORTED_MODULE_10__/* .isStructuredTool */ .Yn,
|
|
31594
|
-
isStructuredToolParams: () => _types_js__WEBPACK_IMPORTED_MODULE_10__/* .isStructuredToolParams */ .Am,
|
|
31595
|
-
tool: () => tool
|
|
31596
|
-
});
|
|
31597
|
-
/**
|
|
31598
|
-
* Base class for Tools that accept input of any shape defined by a Zod schema.
|
|
31599
|
-
*/
|
|
31600
|
-
var StructuredTool = class extends _language_models_base_js__WEBPACK_IMPORTED_MODULE_9__/* .BaseLangChain */ .ZE {
|
|
31601
|
-
/**
|
|
31602
|
-
* Optional provider-specific extra fields for the tool.
|
|
31603
|
-
*
|
|
31604
|
-
* This is used to pass provider-specific configuration that doesn't fit into
|
|
31605
|
-
* standard tool fields.
|
|
31606
|
-
*/
|
|
31607
|
-
extras;
|
|
31608
|
-
/**
|
|
31609
|
-
* Whether to return the tool's output directly.
|
|
31610
|
-
*
|
|
31611
|
-
* Setting this to true means that after the tool is called,
|
|
31612
|
-
* an agent should stop looping.
|
|
31613
|
-
*/
|
|
31614
|
-
returnDirect = false;
|
|
31615
|
-
verboseParsingErrors = false;
|
|
31616
|
-
get lc_namespace() {
|
|
31617
|
-
return ["langchain", "tools"];
|
|
31618
|
-
}
|
|
31619
|
-
/**
|
|
31620
|
-
* The tool response format.
|
|
31621
|
-
*
|
|
31622
|
-
* If "content" then the output of the tool is interpreted as the contents of a
|
|
31623
|
-
* ToolMessage. If "content_and_artifact" then the output is expected to be a
|
|
31624
|
-
* two-tuple corresponding to the (content, artifact) of a ToolMessage.
|
|
31625
|
-
*
|
|
31626
|
-
* @default "content"
|
|
31627
|
-
*/
|
|
31628
|
-
responseFormat = "content";
|
|
31629
|
-
/**
|
|
31630
|
-
* Default config object for the tool runnable.
|
|
31631
|
-
*/
|
|
31632
|
-
defaultConfig;
|
|
31633
|
-
constructor(fields) {
|
|
31634
|
-
super(fields ?? {});
|
|
31635
|
-
this.verboseParsingErrors = fields?.verboseParsingErrors ?? this.verboseParsingErrors;
|
|
31636
|
-
this.responseFormat = fields?.responseFormat ?? this.responseFormat;
|
|
31637
|
-
this.defaultConfig = fields?.defaultConfig ?? this.defaultConfig;
|
|
31638
|
-
this.metadata = fields?.metadata ?? this.metadata;
|
|
31639
|
-
this.extras = fields?.extras ?? this.extras;
|
|
31640
|
-
}
|
|
31641
|
-
/**
|
|
31642
|
-
* Invokes the tool with the provided input and configuration.
|
|
31643
|
-
* @param input The input for the tool.
|
|
31644
|
-
* @param config Optional configuration for the tool.
|
|
31645
|
-
* @returns A Promise that resolves with the tool's output.
|
|
31646
|
-
*/
|
|
31647
|
-
async invoke(input, config) {
|
|
31648
|
-
let toolInput;
|
|
31649
|
-
let enrichedConfig = (0,_runnables_config_js__WEBPACK_IMPORTED_MODULE_6__/* .ensureConfig */ .ZI)((0,_runnables_config_js__WEBPACK_IMPORTED_MODULE_6__/* .mergeConfigs */ .SV)(this.defaultConfig, config));
|
|
31650
|
-
if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__/* ._isToolCall */ .Ky)(input)) {
|
|
31651
|
-
toolInput = input.args;
|
|
31652
|
-
enrichedConfig = {
|
|
31653
|
-
...enrichedConfig,
|
|
31654
|
-
toolCall: input
|
|
31655
|
-
};
|
|
31656
|
-
} else toolInput = input;
|
|
31657
|
-
return this.call(toolInput, enrichedConfig);
|
|
31658
|
-
}
|
|
31659
|
-
/**
|
|
31660
|
-
* @deprecated Use .invoke() instead. Will be removed in 0.3.0.
|
|
31661
|
-
*
|
|
31662
|
-
* Calls the tool with the provided argument, configuration, and tags. It
|
|
31663
|
-
* parses the input according to the schema, handles any errors, and
|
|
31664
|
-
* manages callbacks.
|
|
31665
|
-
* @param arg The input argument for the tool.
|
|
31666
|
-
* @param configArg Optional configuration or callbacks for the tool.
|
|
31667
|
-
* @param tags Optional tags for the tool.
|
|
31668
|
-
* @returns A Promise that resolves with a string.
|
|
31669
|
-
*/
|
|
31670
|
-
async call(arg, configArg, tags) {
|
|
31671
|
-
const inputForValidation = (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__/* ._isToolCall */ .Ky)(arg) ? arg.args : arg;
|
|
31672
|
-
let parsed;
|
|
31673
|
-
if ((0,_utils_types_zod_js__WEBPACK_IMPORTED_MODULE_12__/* .isInteropZodSchema */ .c9)(this.schema)) try {
|
|
31674
|
-
parsed = await (0,_utils_types_zod_js__WEBPACK_IMPORTED_MODULE_12__/* .interopParseAsync */ .hZ)(this.schema, inputForValidation);
|
|
31675
|
-
} catch (e) {
|
|
31676
|
-
let message = `Received tool input did not match expected schema`;
|
|
31677
|
-
if (this.verboseParsingErrors) message = `${message}\nDetails: ${e.message}`;
|
|
31678
|
-
if ((0,_utils_types_zod_js__WEBPACK_IMPORTED_MODULE_12__/* .isInteropZodError */ .BZ)(e)) message = `${message}\n\n${zod_v4__WEBPACK_IMPORTED_MODULE_13__/* .prettifyError */ .S1(e)}`;
|
|
31679
|
-
throw new _utils_js__WEBPACK_IMPORTED_MODULE_1__/* .ToolInputParsingException */ .qe(message, JSON.stringify(arg));
|
|
31680
|
-
}
|
|
31681
|
-
else {
|
|
31682
|
-
const result = (0,_cfworker_json_schema__WEBPACK_IMPORTED_MODULE_11__/* .validate */ .tf)(inputForValidation, this.schema);
|
|
31683
|
-
if (!result.valid) {
|
|
31684
|
-
let message = `Received tool input did not match expected schema`;
|
|
31685
|
-
if (this.verboseParsingErrors) message = `${message}\nDetails: ${result.errors.map((e) => `${e.keywordLocation}: ${e.error}`).join("\n")}`;
|
|
31686
|
-
throw new _utils_js__WEBPACK_IMPORTED_MODULE_1__/* .ToolInputParsingException */ .qe(message, JSON.stringify(arg));
|
|
31687
|
-
}
|
|
31688
|
-
parsed = inputForValidation;
|
|
31689
|
-
}
|
|
31690
|
-
const config = (0,_callbacks_manager_js__WEBPACK_IMPORTED_MODULE_3__/* .parseCallbackConfigArg */ .H_)(configArg);
|
|
31691
|
-
const callbackManager_ = _callbacks_manager_js__WEBPACK_IMPORTED_MODULE_3__/* .CallbackManager */ .Td.configure(config.callbacks, this.callbacks, config.tags || tags, this.tags, config.metadata, this.metadata, { verbose: this.verbose });
|
|
31692
|
-
let toolCallId;
|
|
31693
|
-
if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__/* ._isToolCall */ .Ky)(arg)) toolCallId = arg.id;
|
|
31694
|
-
if (!toolCallId && (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__/* ._configHasToolCallId */ .hR)(config)) toolCallId = config.toolCall.id;
|
|
31695
|
-
let callbackInput;
|
|
31696
|
-
if (typeof inputForValidation === "object" && inputForValidation !== null && !Array.isArray(inputForValidation)) callbackInput = inputForValidation;
|
|
31697
|
-
if (!callbackInput) callbackInput = typeof arg === "string" ? arg : JSON.stringify(arg);
|
|
31698
|
-
const runManager = await callbackManager_?.handleToolStart(this.toJSON(), callbackInput, config.runId, void 0, void 0, void 0, config.runName, toolCallId);
|
|
31699
|
-
delete config.runId;
|
|
31700
|
-
let result;
|
|
31701
|
-
try {
|
|
31702
|
-
const raw = await this._call(parsed, runManager, config);
|
|
31703
|
-
result = (0,_runnables_iter_js__WEBPACK_IMPORTED_MODULE_8__/* .isAsyncGenerator */ .aU)(raw) ? await (0,_runnables_iter_js__WEBPACK_IMPORTED_MODULE_8__/* .consumeAsyncGenerator */ .Et)(raw, async (chunk) => {
|
|
31704
|
-
try {
|
|
31705
|
-
await runManager?.handleToolEvent(chunk);
|
|
31706
|
-
} catch (streamError) {
|
|
31707
|
-
await runManager?.handleToolError(streamError);
|
|
31708
|
-
}
|
|
31709
|
-
}) : raw;
|
|
31710
|
-
} catch (e) {
|
|
31711
|
-
await runManager?.handleToolError(e);
|
|
31712
|
-
throw e;
|
|
31713
|
-
}
|
|
31714
|
-
let content;
|
|
31715
|
-
let artifact;
|
|
31716
|
-
if (this.responseFormat === "content_and_artifact") {
|
|
31717
|
-
if (Array.isArray(result) && result.length === 2) [content, artifact] = result;
|
|
31718
|
-
else throw new Error(`Tool response format is "content_and_artifact" but the output was not a two-tuple.\nResult: ${JSON.stringify(result)}`);
|
|
31719
|
-
} else content = result;
|
|
31720
|
-
const formattedOutput = _formatToolOutput({
|
|
31721
|
-
content,
|
|
31722
|
-
artifact,
|
|
31723
|
-
toolCallId,
|
|
31724
|
-
name: this.name,
|
|
31725
|
-
metadata: this.metadata
|
|
31726
|
-
});
|
|
31727
|
-
await runManager?.handleToolEnd(formattedOutput);
|
|
31728
|
-
return formattedOutput;
|
|
31729
|
-
}
|
|
31730
|
-
};
|
|
31731
|
-
/**
|
|
31732
|
-
* Base class for Tools that accept input as a string.
|
|
31733
|
-
*/
|
|
31734
|
-
var Tool = class extends StructuredTool {
|
|
31735
|
-
schema = zod_v3__WEBPACK_IMPORTED_MODULE_14__/* .object */ .Ik({ input: zod_v3__WEBPACK_IMPORTED_MODULE_14__/* .string */ .Yj().optional() }).transform((obj) => obj.input);
|
|
31736
|
-
constructor(fields) {
|
|
31737
|
-
super(fields);
|
|
31738
|
-
}
|
|
31739
|
-
/**
|
|
31740
|
-
* @deprecated Use .invoke() instead. Will be removed in 0.3.0.
|
|
31741
|
-
*
|
|
31742
|
-
* Calls the tool with the provided argument and callbacks. It handles
|
|
31743
|
-
* string inputs specifically.
|
|
31744
|
-
* @param arg The input argument for the tool, which can be a string, undefined, or an input of the tool's schema.
|
|
31745
|
-
* @param callbacks Optional callbacks for the tool.
|
|
31746
|
-
* @returns A Promise that resolves with a string.
|
|
31747
|
-
*/
|
|
31748
|
-
call(arg, callbacks) {
|
|
31749
|
-
const structuredArg = typeof arg === "string" || arg == null ? { input: arg } : arg;
|
|
31750
|
-
return super.call(structuredArg, callbacks);
|
|
31751
|
-
}
|
|
31752
|
-
};
|
|
31753
|
-
/**
|
|
31754
|
-
* A tool that can be created dynamically from a function, name, and description.
|
|
31755
|
-
*/
|
|
31756
|
-
var DynamicTool = class extends Tool {
|
|
31757
|
-
static lc_name() {
|
|
31758
|
-
return "DynamicTool";
|
|
31759
|
-
}
|
|
31760
|
-
name;
|
|
31761
|
-
description;
|
|
31762
|
-
func;
|
|
31763
|
-
constructor(fields) {
|
|
31764
|
-
super(fields);
|
|
31765
|
-
this.name = fields.name;
|
|
31766
|
-
this.description = fields.description;
|
|
31767
|
-
this.func = fields.func;
|
|
31768
|
-
this.returnDirect = fields.returnDirect ?? this.returnDirect;
|
|
31769
|
-
}
|
|
31770
|
-
/**
|
|
31771
|
-
* @deprecated Use .invoke() instead. Will be removed in 0.3.0.
|
|
31772
|
-
*/
|
|
31773
|
-
async call(arg, configArg) {
|
|
31774
|
-
const config = (0,_callbacks_manager_js__WEBPACK_IMPORTED_MODULE_3__/* .parseCallbackConfigArg */ .H_)(configArg);
|
|
31775
|
-
if (config.runName === void 0) config.runName = this.name;
|
|
31776
|
-
return super.call(arg, config);
|
|
31777
|
-
}
|
|
31778
|
-
/** @ignore */
|
|
31779
|
-
_call(input, runManager, parentConfig) {
|
|
31780
|
-
return this.func(input, runManager, parentConfig);
|
|
31781
|
-
}
|
|
31782
|
-
};
|
|
31783
|
-
/**
|
|
31784
|
-
* A tool that can be created dynamically from a function, name, and
|
|
31785
|
-
* description, designed to work with structured data. It extends the
|
|
31786
|
-
* StructuredTool class and overrides the _call method to execute the
|
|
31787
|
-
* provided function when the tool is called.
|
|
31788
|
-
*
|
|
31789
|
-
* Schema can be passed as Zod or JSON schema. The tool will not validate
|
|
31790
|
-
* input if JSON schema is passed.
|
|
31791
|
-
*
|
|
31792
|
-
* @template SchemaT The input schema type for the tool (Zod schema or JSON schema). Defaults to `ToolInputSchemaBase`.
|
|
31793
|
-
* @template SchemaOutputT The output type derived from the schema after parsing/validation. Defaults to `ToolInputSchemaOutputType<SchemaT>`.
|
|
31794
|
-
* @template SchemaInputT The input type derived from the schema before parsing. Defaults to `ToolInputSchemaInputType<SchemaT>`.
|
|
31795
|
-
* @template ToolOutputT The return type of the tool's function. Defaults to `ToolOutputType`.
|
|
31796
|
-
* @template NameT The literal type of the tool name (for discriminated union support). Defaults to `string`.
|
|
31797
|
-
*/
|
|
31798
|
-
var DynamicStructuredTool = class extends StructuredTool {
|
|
31799
|
-
static lc_name() {
|
|
31800
|
-
return "DynamicStructuredTool";
|
|
31801
|
-
}
|
|
31802
|
-
description;
|
|
31803
|
-
func;
|
|
31804
|
-
schema;
|
|
31805
|
-
constructor(fields) {
|
|
31806
|
-
super(fields);
|
|
31807
|
-
this.name = fields.name;
|
|
31808
|
-
this.description = fields.description;
|
|
31809
|
-
this.func = fields.func;
|
|
31810
|
-
this.returnDirect = fields.returnDirect ?? this.returnDirect;
|
|
31811
|
-
this.schema = fields.schema;
|
|
31812
|
-
}
|
|
31813
|
-
/**
|
|
31814
|
-
* @deprecated Use .invoke() instead. Will be removed in 0.3.0.
|
|
31815
|
-
*/
|
|
31816
|
-
async call(arg, configArg, tags) {
|
|
31817
|
-
const config = (0,_callbacks_manager_js__WEBPACK_IMPORTED_MODULE_3__/* .parseCallbackConfigArg */ .H_)(configArg);
|
|
31818
|
-
if (config.runName === void 0) config.runName = this.name;
|
|
31819
|
-
return super.call(arg, config, tags);
|
|
31820
|
-
}
|
|
31821
|
-
_call(arg, runManager, parentConfig) {
|
|
31822
|
-
return this.func(arg, runManager, parentConfig);
|
|
31823
|
-
}
|
|
31824
|
-
};
|
|
31825
|
-
/**
|
|
31826
|
-
* Abstract base class for toolkits in LangChain. Toolkits are collections
|
|
31827
|
-
* of tools that agents can use. Subclasses must implement the `tools`
|
|
31828
|
-
* property to provide the specific tools for the toolkit.
|
|
31829
|
-
*/
|
|
31830
|
-
var BaseToolkit = class {
|
|
31831
|
-
getTools() {
|
|
31832
|
-
return this.tools;
|
|
31833
|
-
}
|
|
31834
|
-
};
|
|
31835
|
-
function tool(func, fields) {
|
|
31836
|
-
const isSimpleStringSchema = (0,_utils_types_zod_js__WEBPACK_IMPORTED_MODULE_12__/* .isSimpleStringZodSchema */ .yQ)(fields.schema);
|
|
31837
|
-
const isStringJSONSchema = (0,_utils_json_schema_js__WEBPACK_IMPORTED_MODULE_7__/* .validatesOnlyStrings */ .y0)(fields.schema);
|
|
31838
|
-
if (!fields.schema || isSimpleStringSchema || isStringJSONSchema) return new DynamicTool({
|
|
31839
|
-
...fields,
|
|
31840
|
-
description: fields.description ?? fields.schema?.description ?? `${fields.name} tool`,
|
|
31841
|
-
func: async (input, runManager, config) => {
|
|
31842
|
-
return new Promise((resolve, reject) => {
|
|
31843
|
-
const childConfig = (0,_runnables_config_js__WEBPACK_IMPORTED_MODULE_6__/* .patchConfig */ .tn)(config, { callbacks: runManager?.getChild() });
|
|
31844
|
-
_singletons_async_local_storage_index_js__WEBPACK_IMPORTED_MODULE_4__/* .AsyncLocalStorageProviderSingleton */ .N.runWithConfig((0,_runnables_config_js__WEBPACK_IMPORTED_MODULE_6__/* .pickRunnableConfigKeys */ .DY)(childConfig), async () => {
|
|
31845
|
-
try {
|
|
31846
|
-
resolve(func(input, childConfig));
|
|
31847
|
-
} catch (e) {
|
|
31848
|
-
reject(e);
|
|
31849
|
-
}
|
|
31850
|
-
});
|
|
31851
|
-
});
|
|
31852
|
-
}
|
|
31853
|
-
});
|
|
31854
|
-
const schema = fields.schema;
|
|
31855
|
-
const description = fields.description ?? fields.schema.description ?? `${fields.name} tool`;
|
|
31856
|
-
return new DynamicStructuredTool({
|
|
31857
|
-
...fields,
|
|
31858
|
-
description,
|
|
31859
|
-
schema,
|
|
31860
|
-
func: async (input, runManager, config) => {
|
|
31861
|
-
return new Promise((resolve, reject) => {
|
|
31862
|
-
let listener;
|
|
31863
|
-
const cleanup = () => {
|
|
31864
|
-
if (config?.signal && listener) config.signal.removeEventListener("abort", listener);
|
|
31865
|
-
};
|
|
31866
|
-
if (config?.signal) {
|
|
31867
|
-
listener = () => {
|
|
31868
|
-
cleanup();
|
|
31869
|
-
reject((0,_utils_signal_js__WEBPACK_IMPORTED_MODULE_15__/* .getAbortSignalError */ .F)(config.signal));
|
|
31870
|
-
};
|
|
31871
|
-
config.signal.addEventListener("abort", listener, { once: true });
|
|
31872
|
-
}
|
|
31873
|
-
const childConfig = (0,_runnables_config_js__WEBPACK_IMPORTED_MODULE_6__/* .patchConfig */ .tn)(config, { callbacks: runManager?.getChild() });
|
|
31874
|
-
_singletons_async_local_storage_index_js__WEBPACK_IMPORTED_MODULE_4__/* .AsyncLocalStorageProviderSingleton */ .N.runWithConfig((0,_runnables_config_js__WEBPACK_IMPORTED_MODULE_6__/* .pickRunnableConfigKeys */ .DY)(childConfig), async () => {
|
|
31875
|
-
try {
|
|
31876
|
-
const result = await func(input, childConfig);
|
|
31877
|
-
if ((0,_runnables_iter_js__WEBPACK_IMPORTED_MODULE_8__/* .isAsyncGenerator */ .aU)(result)) {
|
|
31878
|
-
resolve(result);
|
|
31879
|
-
return;
|
|
31880
|
-
}
|
|
31881
|
-
/**
|
|
31882
|
-
* If the signal is aborted, we don't want to resolve the promise
|
|
31883
|
-
* as the promise is already rejected.
|
|
31884
|
-
*/
|
|
31885
|
-
if (config?.signal?.aborted) {
|
|
31886
|
-
cleanup();
|
|
31887
|
-
return;
|
|
31888
|
-
}
|
|
31889
|
-
cleanup();
|
|
31890
|
-
resolve(result);
|
|
31891
|
-
} catch (e) {
|
|
31892
|
-
cleanup();
|
|
31893
|
-
reject(e);
|
|
31894
|
-
}
|
|
31895
|
-
});
|
|
31896
|
-
});
|
|
31897
|
-
}
|
|
31898
|
-
});
|
|
31899
|
-
}
|
|
31900
|
-
function _isMessageContentBlockShaped(item) {
|
|
31901
|
-
return typeof item === "object" && item !== null && "type" in item;
|
|
31902
|
-
}
|
|
31903
|
-
function _formatToolOutput(params) {
|
|
31904
|
-
const { content, artifact, toolCallId, metadata } = params;
|
|
31905
|
-
if (toolCallId && !(0,_messages_tool_js__WEBPACK_IMPORTED_MODULE_2__/* .isDirectToolOutput */ .fK)(content)) {
|
|
31906
|
-
if (typeof content === "string" || Array.isArray(content) && content.every(_isMessageContentBlockShaped)) return new _messages_tool_js__WEBPACK_IMPORTED_MODULE_2__/* .ToolMessage */ .uf({
|
|
31907
|
-
status: "success",
|
|
31908
|
-
content,
|
|
31909
|
-
artifact,
|
|
31910
|
-
tool_call_id: toolCallId,
|
|
31911
|
-
name: params.name,
|
|
31912
|
-
metadata
|
|
31913
|
-
});
|
|
31914
|
-
else return new _messages_tool_js__WEBPACK_IMPORTED_MODULE_2__/* .ToolMessage */ .uf({
|
|
31915
|
-
status: "success",
|
|
31916
|
-
content: _stringify(content),
|
|
31917
|
-
artifact,
|
|
31918
|
-
tool_call_id: toolCallId,
|
|
31919
|
-
name: params.name,
|
|
31920
|
-
metadata
|
|
31921
|
-
});
|
|
31922
|
-
} else return content;
|
|
31923
|
-
}
|
|
31924
|
-
function _stringify(content) {
|
|
31925
|
-
try {
|
|
31926
|
-
return JSON.stringify(content) ?? "";
|
|
31927
|
-
} catch (_noOp) {
|
|
31928
|
-
return `${content}`;
|
|
31929
|
-
}
|
|
31930
|
-
}
|
|
31931
|
-
//#endregion
|
|
31932
|
-
|
|
31933
|
-
|
|
31934
|
-
//# sourceMappingURL=index.js.map
|
|
31935
|
-
|
|
31936
32418
|
/***/ }),
|
|
31937
32419
|
|
|
31938
32420
|
/***/ 76835:
|
|
@@ -33276,4 +33758,4 @@ exports.CronDayOfWeek = CronDayOfWeek;
|
|
|
33276
33758
|
|
|
33277
33759
|
};
|
|
33278
33760
|
;
|
|
33279
|
-
//# sourceMappingURL=
|
|
33761
|
+
//# sourceMappingURL=6058.js.map
|