Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Aug 4, 2024
1 parent a7647b8 commit ee71534
Show file tree
Hide file tree
Showing 74 changed files with 5,560 additions and 262 deletions.
3 changes: 2 additions & 1 deletion packages/ai-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
},
"devDependencies": {
"@agentic/core": "workspace:*",
"@agentic/tsconfig": "workspace:*"
"@agentic/tsconfig": "workspace:*",
"ai": "^3.1.30"
},
"publishConfig": {
"access": "public"
Expand Down
47 changes: 47 additions & 0 deletions packages/bing/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "@agentic/bing",
"version": "6.6.1",
"description": "Agentic Bing search SDK.",
"author": "Travis Fischer <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/transitive-bullshit/agentic.git"
},
"type": "module",
"source": "./src/index.ts",
"types": "./dist/index.d.ts",
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"clean": "del dist",
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit"
},
"dependencies": {
"ky": "^1.5.0"
},
"peerDependencies": {
"@agentic/core": "workspace:*",
"zod": "^3.23.3"
},
"devDependencies": {
"@agentic/core": "workspace:*",
"@agentic/tsconfig": "workspace:*"
},
"publishConfig": {
"access": "public"
}
}
10 changes: 7 additions & 3 deletions packages/bing/src/bing-client.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import {
aiFunction,
AIFunctionsProvider,
assert,
getEnv,
omit
} from '@agentic/core'
import defaultKy, { type KyInstance } from 'ky'
import { z } from 'zod'

import { aiFunction, AIFunctionsProvider } from '../fns'
import { assert, getEnv, omit } from '../utils'

export namespace bing {
export const API_BASE_URL = 'https://api.bing.microsoft.com'

Expand Down
1 change: 1 addition & 0 deletions packages/bing/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './bing-client'
5 changes: 5 additions & 0 deletions packages/bing/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "@agentic/tsconfig/base.json",
"include": ["src"],
"exclude": ["node_modules", "dist"]
}
1 change: 1 addition & 0 deletions packages/bing/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '../../tsup.config'
48 changes: 48 additions & 0 deletions packages/calculator/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "@agentic/calculator",
"version": "6.6.1",
"description": "Agentic calculator tool wrapping mathjs.",
"author": "Travis Fischer <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/transitive-bullshit/agentic.git"
},
"type": "module",
"source": "./src/index.ts",
"types": "./dist/index.d.ts",
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"clean": "del dist",
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit"
},
"dependencies": {
"ky": "^1.5.0",
"mathjs": "^13.0.3"
},
"peerDependencies": {
"@agentic/core": "workspace:*",
"zod": "^3.23.3"
},
"devDependencies": {
"@agentic/core": "workspace:*",
"@agentic/tsconfig": "workspace:*"
},
"publishConfig": {
"access": "public"
}
}
1 change: 1 addition & 0 deletions packages/calculator/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './calculator'
5 changes: 5 additions & 0 deletions packages/calculator/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "@agentic/tsconfig/base.json",
"include": ["src"],
"exclude": ["node_modules", "dist"]
}
1 change: 1 addition & 0 deletions packages/calculator/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '../../tsup.config'
48 changes: 48 additions & 0 deletions packages/clearbit/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "@agentic/clearbit",
"version": "6.6.1",
"description": "Agentic Clearbit SDK.",
"author": "Travis Fischer <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/transitive-bullshit/agentic.git"
},
"type": "module",
"source": "./src/index.ts",
"types": "./dist/index.d.ts",
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"clean": "del dist",
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit"
},
"dependencies": {
"ky": "^1.5.0",
"p-throttle": "^6.1.0"
},
"peerDependencies": {
"@agentic/core": "workspace:*",
"zod": "^3.23.3"
},
"devDependencies": {
"@agentic/core": "workspace:*",
"@agentic/tsconfig": "workspace:*"
},
"publishConfig": {
"access": "public"
}
}
8 changes: 3 additions & 5 deletions packages/clearbit/src/clearbit-client.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import defaultKy from 'ky'
import pThrottle from 'p-throttle'

import type { KyInstance } from '../types'
import {
assert,
delay,
getEnv,
pruneNullOrUndefinedDeep,
sanitizeSearchParams,
throttleKy
} from '../utils'
} from '@agentic/core'
import defaultKy, { type KyInstance } from 'ky'
import pThrottle from 'p-throttle'

export namespace clearbit {
// Allow up to 600 requests per minute by default.
Expand Down
1 change: 1 addition & 0 deletions packages/clearbit/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './clearbit-client'
5 changes: 5 additions & 0 deletions packages/clearbit/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "@agentic/tsconfig/base.json",
"include": ["src"],
"exclude": ["node_modules", "dist"]
}
1 change: 1 addition & 0 deletions packages/clearbit/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '../../tsup.config'
48 changes: 48 additions & 0 deletions packages/dexa/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "@agentic/dexa",
"version": "6.6.1",
"description": "Agentic Dexa SDK.",
"author": "Travis Fischer <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/transitive-bullshit/agentic.git"
},
"type": "module",
"source": "./src/index.ts",
"types": "./dist/index.d.ts",
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"clean": "del dist",
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit"
},
"dependencies": {
"ky": "^1.5.0",
"p-throttle": "^6.1.0"
},
"peerDependencies": {
"@agentic/core": "workspace:*",
"zod": "^3.23.3"
},
"devDependencies": {
"@agentic/core": "workspace:*",
"@agentic/tsconfig": "workspace:*"
},
"publishConfig": {
"access": "public"
}
}
11 changes: 7 additions & 4 deletions packages/dexa/src/dexa-client.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import {
aiFunction,
AIFunctionsProvider,
assert,
getEnv,
Msg
} from '@agentic/core'
import defaultKy, { type KyInstance } from 'ky'
import { z } from 'zod'

import { aiFunction, AIFunctionsProvider } from '../fns'
import { Msg } from '../message'
import { assert, getEnv } from '../utils'

export namespace dexa {
export const AskDexaOptionsSchema = z.object({
question: z.string().describe('The question to ask Dexa.')
Expand Down
2 changes: 2 additions & 0 deletions packages/dexa/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './dexa-client'
export * from './scraper-client'
11 changes: 8 additions & 3 deletions packages/dexa/src/scraper-client.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import {
aiFunction,
AIFunctionsProvider,
assert,
getEnv,
omit,
throttleKy
} from '@agentic/core'
import defaultKy, { type KyInstance } from 'ky'
import pThrottle from 'p-throttle'
import { z } from 'zod'

import { aiFunction, AIFunctionsProvider } from '../fns'
import { assert, getEnv, omit, throttleKy } from '../utils'

export namespace scraper {
// Allow up to 1 request per second by default.
export const throttle = pThrottle({
Expand Down
5 changes: 5 additions & 0 deletions packages/dexa/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "@agentic/tsconfig/base.json",
"include": ["src"],
"exclude": ["node_modules", "dist"]
}
1 change: 1 addition & 0 deletions packages/dexa/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '../../tsup.config'
46 changes: 46 additions & 0 deletions packages/dexter/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "@agentic/dexter",
"version": "6.6.1",
"description": "Agentic adapter for the Dexter AI SDK by Dexa.",
"author": "Travis Fischer <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/transitive-bullshit/agentic.git"
},
"type": "module",
"source": "./src/index.ts",
"types": "./dist/index.d.ts",
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"clean": "del dist",
"test": "run-s test:*",
"test:lint": "eslint .",
"test:typecheck": "tsc --noEmit",
"test:unit": "vitest run"
},
"peerDependencies": {
"@agentic/core": "workspace:*",
"@dexaai/dexter": "^2.1.0"
},
"devDependencies": {
"@agentic/core": "workspace:*",
"@agentic/tsconfig": "workspace:*",
"@dexaai/dexter": "^2.1.0"
},
"publishConfig": {
"access": "public"
}
}
10 changes: 10 additions & 0 deletions packages/dexter/src/dexter.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { EchoAITool } from '@agentic/core'
import { describe, expect, test } from 'vitest'

import { createDexterFunctions } from './dexter'

describe('dexter', () => {
test('createDexterFunctions', () => {
expect(createDexterFunctions(new EchoAITool())).toHaveLength(1)
})
})
4 changes: 1 addition & 3 deletions packages/dexter/src/dexter.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { type AIFunctionLike, AIFunctionSet } from '@agentic/core'
import { createAIFunction } from '@dexaai/dexter'

import type { AIFunctionLike } from '../types'
import { AIFunctionSet } from '../ai-function-set'

/**
* Converts a set of Agentic stdlib AI functions to an array of Dexter-
* compatible AI functions.
Expand Down
1 change: 1 addition & 0 deletions packages/dexter/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dexter'
5 changes: 5 additions & 0 deletions packages/dexter/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "@agentic/tsconfig/base.json",
"include": ["src"],
"exclude": ["node_modules", "dist"]
}
1 change: 1 addition & 0 deletions packages/dexter/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '../../tsup.config'
Loading

0 comments on commit ee71534

Please sign in to comment.