'use client'; import ImageSelector from '@/components/chat/ImageSelector'; import { generateInputImageMarkdown } from '@/lib/messageUtils'; import { ChatEntity, MessageBase } from '@/lib/types'; import { fetcher } from '@/lib/utils'; import Image from 'next/image'; import { useRouter } from 'next/navigation'; import { Tooltip, TooltipContent, TooltipTrigger, } from '@/components/ui/Tooltip'; import { IconDiscord, IconGitHub } from '@/components/ui/Icons'; import Link from 'next/link'; import { Button } from '@/components/ui/Button'; import Img from '@/components/ui/Img'; const exampleMessages = [ { heading: 'Counting', subheading: 'number of cereals in an image', url: 'https://landing-lens-support.s3.us-east-2.amazonaws.com/vision-agent-examples/cereal-example.jpg', initMessages: [ { role: 'user', content: 'how many cereals are there in the image?' + '\n\n' + generateInputImageMarkdown( 'https://landing-lens-support.s3.us-east-2.amazonaws.com/vision-agent-examples/cereal-example.jpg', ), id: 'fake-id-1', }, ], }, // { // heading: 'Detecting', // url: 'https://landing-lens-support.s3.us-east-2.amazonaws.com/vision-agent-examples/cereal-example.jpg', // subheading: 'number of cereals in an image', // message: `How many cereals are there in the image?`, // }, ]; export default function Page() { const router = useRouter(); return (

Welcome to Vision Agent

Vision Agent is a library that helps you utilize agent frameworks for your vision tasks. Vision Agent aims to provide an in-seconds experience by allowing users to describe their problem in text and utilizing agent frameworks to solve the task for them.

Github Discord
{exampleMessages.map((example, index) => (
1 && 'hidden md:block' }`} onClick={async () => { const resp = await fetcher('/api/upload', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ url: example.url, initMessages: example.initMessages, }), }); if (resp) { router.push(`/chat/${resp.id}`); } }} > example images
{example.heading}
{example.subheading}
))}
); }