kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
old-agentic-v1^2
rodzic
66c96591ab
commit
ccde1a5708
|
@ -2,7 +2,7 @@ import 'dotenv/config'
|
|||
import { OpenAIClient } from 'openai-fetch'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { Agentic } from '../src'
|
||||
import { Agentic } from '@/agentic'
|
||||
|
||||
async function main() {
|
||||
const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! })
|
||||
|
|
|
@ -2,7 +2,7 @@ import 'dotenv/config'
|
|||
import { OpenAIClient } from 'openai-fetch'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { Agentic } from '../src'
|
||||
import { Agentic } from '@/agentic'
|
||||
|
||||
async function main() {
|
||||
const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! })
|
||||
|
|
|
@ -2,7 +2,7 @@ import 'dotenv/config'
|
|||
import { OpenAIClient } from 'openai-fetch'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { Agentic, MetaphorSearchTool } from '../src'
|
||||
import { Agentic, MetaphorSearchTool } from '@/index'
|
||||
|
||||
async function main() {
|
||||
const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! })
|
||||
|
|
|
@ -2,7 +2,7 @@ import 'dotenv/config'
|
|||
import { OpenAIClient } from 'openai-fetch'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { Agentic } from '../src'
|
||||
import { Agentic } from '@/agentic'
|
||||
|
||||
export async function main() {
|
||||
const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! })
|
||||
|
|
|
@ -2,7 +2,8 @@ import 'dotenv/config'
|
|||
import { OpenAIClient } from 'openai-fetch'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { Agentic } from '../src'
|
||||
import { Agentic } from '@/agentic'
|
||||
|
||||
import { getProblems } from './fixtures/calc'
|
||||
|
||||
export async function calcEval() {
|
||||
|
|
|
@ -2,7 +2,7 @@ import 'dotenv/config'
|
|||
import { OpenAIClient } from 'openai-fetch'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { Agentic } from '../src'
|
||||
import { Agentic } from '@/agentic'
|
||||
|
||||
export async function equationProducer() {
|
||||
const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! })
|
||||
|
|
|
@ -2,7 +2,7 @@ import 'dotenv/config'
|
|||
import { OpenAIClient } from 'openai-fetch'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { Agentic } from '../src'
|
||||
import { Agentic } from '@/agentic'
|
||||
|
||||
// import { summaryAgent } from './summary'
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import 'dotenv/config'
|
|||
import { OpenAIClient } from 'openai-fetch'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { Agentic, HumanFeedbackSelect } from '../src'
|
||||
import { Agentic, HumanFeedbackSelect } from '@/index'
|
||||
|
||||
async function main() {
|
||||
const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! })
|
||||
|
|
|
@ -2,7 +2,7 @@ import 'dotenv/config'
|
|||
import { OpenAIClient } from 'openai-fetch'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { Agentic, HumanFeedbackSingle } from '../src'
|
||||
import { Agentic, HumanFeedbackSingle } from '@/index'
|
||||
|
||||
async function main() {
|
||||
const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! })
|
||||
|
|
|
@ -2,7 +2,7 @@ import 'dotenv/config'
|
|||
import { OpenAIClient } from 'openai-fetch'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { Agentic } from '../src'
|
||||
import { Agentic } from '@/agentic'
|
||||
|
||||
export async function main() {
|
||||
const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! })
|
||||
|
|
|
@ -2,7 +2,7 @@ import 'dotenv/config'
|
|||
import { OpenAIClient } from 'openai-fetch'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { Agentic } from '../src'
|
||||
import { Agentic } from '@/agentic'
|
||||
|
||||
async function main() {
|
||||
const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! })
|
||||
|
|
|
@ -2,13 +2,13 @@ import 'dotenv/config'
|
|||
import { OpenAIClient } from 'openai-fetch'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { Agentic, MetaphorSearchTool } from '../src'
|
||||
import { Agentic, MetaphorSearchTool } from '@/index'
|
||||
|
||||
async function main() {
|
||||
const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! })
|
||||
const $ = new Agentic({ openai })
|
||||
|
||||
const metaphorSearch = new MetaphorSearchTool()
|
||||
const metaphorSearch = new MetaphorSearchTool({ agentic: $ })
|
||||
const results = await metaphorSearch.call({
|
||||
query: 'probability of AI doom:',
|
||||
numResults: 5
|
||||
|
|
|
@ -3,8 +3,8 @@ import editor from '@inquirer/editor'
|
|||
import select from '@inquirer/select'
|
||||
import { ZodTypeAny, z } from 'zod'
|
||||
|
||||
import * as types from '../types'
|
||||
import { BaseTask } from '../task'
|
||||
import * as types from '@/types'
|
||||
import { BaseTask } from '@/task'
|
||||
|
||||
/**
|
||||
* Actions the user can take in the feedback selection prompt.
|
||||
|
|
Ładowanie…
Reference in New Issue