old-agentic-v1^2
Travis Fischer 2023-06-07 12:13:01 -07:00
rodzic 66c96591ab
commit ccde1a5708
13 zmienionych plików z 16 dodań i 15 usunięć

2
examples/basic.ts vendored
Wyświetl plik

@ -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
examples/facts.ts vendored
Wyświetl plik

@ -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! })

Wyświetl plik

@ -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! })

Wyświetl plik

@ -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! })

Wyświetl plik

@ -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() {

Wyświetl plik

@ -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! })

Wyświetl plik

@ -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'

Wyświetl plik

@ -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! })

Wyświetl plik

@ -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! })

Wyświetl plik

@ -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! })

Wyświetl plik

@ -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! })

Wyświetl plik

@ -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

Wyświetl plik

@ -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.