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