Skip to content

Commit

Permalink
Move agents and schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
miurla committed Apr 7, 2024
1 parent bf1fc1d commit c116df1
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ExperimentalMessage } from 'ai'
import { Spinner } from '@/components/ui/spinner'
import { Section } from '@/components/section'
import { FollowupPanel } from '@/components/followup-panel'
import { inquire, researcher, taskManager, querySuggestor } from '@/app/agents'
import { inquire, researcher, taskManager, querySuggestor } from '@/lib/agents'

async function submit(formData?: FormData, skip?: boolean) {
'use server'
Expand Down
2 changes: 1 addition & 1 deletion components/copilot.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import React, { useEffect, useState } from 'react'
import { PartialInquiry } from '@/app/schema/inquiry'
import { PartialInquiry } from '@/lib/schema/inquiry'
import { Input } from './ui/input'
import { Checkbox } from './ui/checkbox'
import { Button } from './ui/button'
Expand Down
2 changes: 1 addition & 1 deletion components/search-related.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ArrowRight } from 'lucide-react'
import { useActions, useStreamableValue, useUIState } from 'ai/rsc'
import { AI } from '@/app/action'
import { UserMessage } from './user-message'
import { PartialRelated } from '@/app/schema/related'
import { PartialRelated } from '@/lib/schema/related'

export interface SearchRelatedProps {
relatedQueries: PartialRelated
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion app/agents/inquire.tsx → lib/agents/inquire.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { openai } from 'ai/openai'
import { Copilot } from '@/components/copilot'
import { createStreamableUI, createStreamableValue } from 'ai/rsc'
import { ExperimentalMessage, experimental_streamObject } from 'ai'
import { PartialInquiry, inquirySchema } from '@/app/schema/inquiry'
import { PartialInquiry, inquirySchema } from '@/lib/schema/inquiry'

export async function inquire(
uiStream: ReturnType<typeof createStreamableUI>,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createStreamableUI, createStreamableValue } from 'ai/rsc'
import { ExperimentalMessage, experimental_streamObject } from 'ai'
import { PartialRelated, relatedSchema } from '@/app/schema/related'
import { PartialRelated, relatedSchema } from '@/lib/schema/related'
import { Section } from '@/components/section'
import SearchRelated from '@/components/search-related'
import { openai } from 'ai/openai'
Expand Down
2 changes: 1 addition & 1 deletion app/agents/researcher.tsx → lib/agents/researcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
ToolResultPart,
experimental_streamText
} from 'ai'
import { searchSchema } from '@/app/schema/search'
import { searchSchema } from '@/lib/schema/search'
import { Section } from '@/components/section'
import { openai } from 'ai/openai'
import { ToolBadge } from '@/components/tool-badge'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c116df1

Please sign in to comment.