agentops
agentops copied to clipboard
feat: add gptlint
๐ฅ Pull Request
๐ Description
This PR is an example of how to add gptlint to AgentOps.
๐ Related Issue (if applicable) https://github.com/gptlint/gptlint/issues/17
๐ฏ Goal This PR ads a single gptlint rule aimed at enforcing correct spelling and grammar.
๐ Additional Context Previous confo w/ Alex.
๐งช Testing
Maybe I'm just running it wrong, but it's not catching English errors I've intentionally introduced:
(Cached run, but results still the same):
(env) (base) โ agentops git:(feature/gptlint) โ npx gptlint -C README.md
Linter tasks { numFiles: 1, numRules: 1, numTasks: 1 }
Linter stats; total cost $0.00 {
model: 'gpt-4-turbo',
weakModel: 'gpt-3.5-turbo',
numModelCalls: 1,
numModelCallsCached: 0,
numPromptTokens: 2974,
numCompletionTokens: 71,
numTotalTokens: 3045,
lintDuration: '2s'
}
no lint errors ๐
โ Preprocessing 1 files and 1 rules