kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/643/head^2
rodzic
b3e589c520
commit
bf6ee7c9b2
|
@ -8,14 +8,14 @@ import restoreCursor from 'restore-cursor'
|
||||||
// import { ProxycurlClient } from '../src/services/proxycurl-client.js'
|
// import { ProxycurlClient } from '../src/services/proxycurl-client.js'
|
||||||
// import { WikipediaClient } from '../src/index.js'
|
// import { WikipediaClient } from '../src/index.js'
|
||||||
// import { PerigonClient } from '../src/index.js'
|
// import { PerigonClient } from '../src/index.js'
|
||||||
// import { FirecrawlClient } from '../src/index.js'
|
import { FirecrawlClient } from '../src/index.js'
|
||||||
// import { ExaClient } from '../src/index.js'
|
// import { ExaClient } from '../src/index.js'
|
||||||
// import { DiffbotClient } from '../src/index.js'
|
// import { DiffbotClient } from '../src/index.js'
|
||||||
// import { WolframClient } from '../src/index.js'
|
// import { WolframClient } from '../src/index.js'
|
||||||
import {
|
// import {
|
||||||
createTwitterV2Client,
|
// createTwitterV2Client,
|
||||||
TwitterClient
|
// TwitterClient
|
||||||
} from '../src/services/twitter/index.js'
|
// } from '../src/services/twitter/index.js'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Scratch pad for testing.
|
* Scratch pad for testing.
|
||||||
|
@ -56,12 +56,12 @@ async function main() {
|
||||||
// })
|
// })
|
||||||
// console.log(JSON.stringify(res, null, 2))
|
// console.log(JSON.stringify(res, null, 2))
|
||||||
|
|
||||||
// const firecrawl = new FirecrawlClient()
|
const firecrawl = new FirecrawlClient()
|
||||||
// const res = await firecrawl.scrapeUrl({
|
const res = await firecrawl.scrapeUrl({
|
||||||
// // url: 'https://www.bbc.com/news/articles/cp4475gwny1o'
|
// url: 'https://www.bbc.com/news/articles/cp4475gwny1o'
|
||||||
// url: 'https://www.firecrawl.dev'
|
url: 'https://www.firecrawl.dev'
|
||||||
// })
|
})
|
||||||
// console.log(JSON.stringify(res, null, 2))
|
console.log(JSON.stringify(res, null, 2))
|
||||||
|
|
||||||
// const exa = new ExaClient()
|
// const exa = new ExaClient()
|
||||||
// const res = await exa.search({
|
// const res = await exa.search({
|
||||||
|
@ -86,15 +86,15 @@ async function main() {
|
||||||
// })
|
// })
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
|
|
||||||
const client = await createTwitterV2Client({
|
// const client = await createTwitterV2Client({
|
||||||
scopes: ['tweet.read', 'users.read', 'offline.access']
|
// scopes: ['tweet.read', 'users.read', 'offline.access']
|
||||||
})
|
// })
|
||||||
const twitter = new TwitterClient({ client })
|
// const twitter = new TwitterClient({ client })
|
||||||
// const res = await twitter.findUserByUsername({ username: 'transitive_bs' })
|
// // const res = await twitter.findUserByUsername({ username: 'transitive_bs' })
|
||||||
const res = await twitter.searchRecentTweets({
|
// const res = await twitter.searchRecentTweets({
|
||||||
query: 'open source AI agents'
|
// query: 'open source AI agents'
|
||||||
})
|
// })
|
||||||
console.log(res)
|
// console.log(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -136,7 +136,7 @@ The SDK-specific imports are all isolated to keep the main `@agentic/stdlib` as
|
||||||
- searxng
|
- searxng
|
||||||
- serpapi
|
- serpapi
|
||||||
- serper
|
- serper
|
||||||
- twitter (WIP)
|
- twitter
|
||||||
- wolfram alpha
|
- wolfram alpha
|
||||||
- weatherapi
|
- weatherapi
|
||||||
- wikipedia
|
- wikipedia
|
||||||
|
|
|
@ -11,7 +11,6 @@ export * from './scraper-client.js'
|
||||||
export * from './searxng-client.js'
|
export * from './searxng-client.js'
|
||||||
export * from './serpapi-client.js'
|
export * from './serpapi-client.js'
|
||||||
export * from './serper-client.js'
|
export * from './serper-client.js'
|
||||||
export * from './twitter-client.js'
|
|
||||||
export * from './weather-client.js'
|
export * from './weather-client.js'
|
||||||
export * from './wikipedia-client.js'
|
export * from './wikipedia-client.js'
|
||||||
export * from './wolfram-client.js'
|
export * from './wolfram-client.js'
|
||||||
|
|
Ładowanie…
Reference in New Issue