Skip to content

Commit

Permalink
Fixes eslint on tools package.
Browse files Browse the repository at this point in the history
  • Loading branch information
darielnoel committed Nov 7, 2024
1 parent d8246ff commit 9c6f273
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions packages/tools/jest.polyfills.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
const { TextDecoder, TextEncoder } = require('node:util');
const { ReadableStream, TransformStream } = require('node:stream/web');

Expand Down
1 change: 0 additions & 1 deletion packages/tools/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import path from 'path';
import { defineConfig } from 'rollup';
import commonjs from '@rollup/plugin-commonjs';
import { nodeResolve } from '@rollup/plugin-node-resolve';
Expand Down
4 changes: 1 addition & 3 deletions packages/tools/src/_utils/AgentWithToolPreviewer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export const AgentWithToolPreviewer = ({ team }) => {
setInputs,
inputs,
workflowResult,
workflowLogs
} = useTeamStore(state => ({
agents: state.agents,
tasks: state.tasks,
Expand All @@ -23,7 +22,6 @@ export const AgentWithToolPreviewer = ({ team }) => {
setInputs: state.setInputs,
inputs: state.inputs,
workflowResult: state.workflowResult,
workflowLogs: state.workflowLogs
}));

// Subscribe to workflow logs
Expand Down Expand Up @@ -61,7 +59,7 @@ export const AgentWithToolPreviewer = ({ team }) => {
try {
const newInputs = JSON.parse(e.target.value);
setInputs(newInputs);
} catch (error) {
} catch {
// Invalid JSON - don't update the store
console.warn('Invalid JSON input');
}
Expand Down
2 changes: 1 addition & 1 deletion packages/tools/src/_utils/ToolPreviewer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const ToolPreviewer = ({ toolInstance, callParams }) => {
options={editorOptions}
/>
) : (
<p className="no-content-message">No content yet. Enter a URL and click 'Execute Tool' to fetch content.</p>
<p className="no-content-message">No content yet. Enter a URL and click &apos;Execute Tool&apos; to fetch content.</p>
)}
</div>
</div>
Expand Down
2 changes: 0 additions & 2 deletions packages/tools/src/firecrawl/firecrawl.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const { Firecrawl } = require('../../dist/firecrawl/index.cjs.js');
const { expect, test } = require('@jest/globals');


describe('Firecrawl', () => {
test('Firecrawl sends correct default parameters and receives markdown', async () => {
Expand Down
3 changes: 1 addition & 2 deletions packages/tools/src/tavily/tavily.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const { TavilySearchResults } = require('../../dist/tavily/index.cjs.js');
const { expect, test } = require('@jest/globals');


describe('TavilySearchResults', () => {
Expand Down Expand Up @@ -82,7 +81,7 @@ describe('TavilySearchResults', () => {
}
});

const result = await tool._call({ searchQuery: 'latest AI developments' });
await tool._call({ searchQuery: 'latest AI developments' });

// Check request
expect(capturedRequest.url).toBe('https://api.tavily.com/search');
Expand Down

0 comments on commit 9c6f273

Please sign in to comment.