text stringlengths 3 8.33k | repo stringclasses 52
values | path stringlengths 6 141 | language stringclasses 35
values | sha stringlengths 64 64 | chunk_index int32 0 273 | n_tokens int32 1 896 |
|---|---|---|---|---|---|---|
name,
mediaType: attachment.contentType,
})),
{
type: "text",
text: input,
},
],
});
setAttachments([]);
setLocalStorageInput("");
resetHeight();
setInput("");
if (width && width > 768) {
textareaRef.current?.focus();
}
},... | ifg-agentic | components/multimodal-input.tsx | TypeScript | 6916200d761f21d10bd980947111cc0f4c18de33e7bc3218562137115c8c5307 | 1 | 896 |
</div>
)}
<div className="flex flex-row items-start gap-1 sm:gap-2">
<PromptInputTextarea
autoFocus
className="grow resize-none border-0! border-none! bg-transparent p-2 text-sm outline-none ring-0 [-ms-overflow-style:none] [scrollbar-width:none] placeholder:text-muted-... | ifg-agentic | components/multimodal-input.tsx | TypeScript | feeb2d70d6ffd6238ae4e75777e844e54e1d2e9c625f7dde23ec1914bca194e4 | 2 | 896 |
model);
startTransition(() => {
saveChatModelAsCookie(model.model);
});
}
}}
value={selectedModel?.model}
>
<PromptInputModelSelectTrigger
className="flex h-8 cursor-pointer items-center gap-2 rounded-lg border-0 bg-background px-2 text-foreground sh... | ifg-agentic | components/multimodal-input.tsx | TypeScript | 7180f3e6a1a5eadab926debe39000fb823125ab347a3e60c0482c1bcb1991dd7 | 3 | 532 |
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
| ifg-agentic | components/multistep-form.tsx | TypeScript | 4acbc7165a8d54738ff62b51414e772c08fe78434e524e6d8770180d3ba2925f | 0 | 47 |
import Link from "next/link";
import { Badge } from "./ui/badge";
type ResourceResult = {
name: string;
url?: string;
format?: string;
state?: string;
size?: number;
language?: string;
created?: string;
last_modified?: string;
mimetype?: string;
characterSet?: string;
datastore_active?: boolean;
... | ifg-agentic | components/resource-details-widget.tsx | TypeScript | 5c9c0e90260c25d747cadbab934f6e20b8af0c68e060075bbf3bca99974ede3b | 0 | 896 |
}
</span>
</div>
)}
</div>
{/* Technical Details */}
{(result.mimetype || result.characterSet || result.datastore_active) && (
<div className="border-t pt-3">
<span className="mb-2 block font-medium text-muted-foreground text-xs uppercase tracking-wide"... | ifg-agentic | components/resource-details-widget.tsx | TypeScript | c7f52b5fc7312737f477410fa405068bf97c853d00015543846ae1fd4361ec7f | 1 | 351 |
"use client"
import { motion } from "framer-motion";
export function ShinyText({ text }: { text: string }) {
return (
<motion.h1
className="bg-[length:200%_100%] bg-[linear-gradient(110deg,#71717b,35%,#ecfdf5,50%,#71717b,75%,#71717b)] bg-clip-text font-regular text-base text-transparent"
... | ifg-agentic | components/shiny-text.tsx | TypeScript | 465cf4a4f2c24ebc73b5a465776361eafa0a323d470310d61c987c773ee17d9b | 0 | 161 |
"use client";
import type { UseChatHelpers } from "@ai-sdk/react";
import { motion } from "framer-motion";
import { memo } from "react";
import type { ChatMessage } from "@/lib/types";
import { Suggestion } from "./elements/suggestion";
import type { VisibilityType } from "./visibility-selector";
type SuggestedAction... | ifg-agentic | components/suggested-actions.tsx | TypeScript | b95e808f24f805747acce8d0882a3a139b901e7f70723e40af389ae22a7df71c | 0 | 440 |
import { useState } from "react";
import type { ReactNode } from "react";
import { ChevronRight } from "lucide-react";
import { motion, AnimatePresence } from "framer-motion";
import { ShinyText } from "./shiny-text";
type ToolAccordionProps = {
icon: ReactNode;
loadingText: string;
completedText: string;
isLo... | ifg-agentic | components/tool-accordion.tsx | TypeScript | 6ae03c8cbb52593e37f6ecd55de9450c6273f4109da1e4384285c06f058df43a | 0 | 616 |
'use client';
import cx from 'classnames';
import { format, isWithinInterval } from 'date-fns';
import { useEffect, useState } from 'react';
type WeatherAtLocation = {
latitude: number;
longitude: number;
generationtime_ms: number;
utc_offset_seconds: number;
timezone: string;
timezone_abbreviation: strin... | ifg-agentic | components/weather.tsx | TypeScript | 85272e19a5af0fcadb254713308af6d3d53d4e648cc8b967497e103aec341039 | 0 | 896 |
00',
'2024-10-09T02:00',
'2024-10-09T03:00',
'2024-10-09T04:00',
'2024-10-09T05:00',
'2024-10-09T06:00',
'2024-10-09T07:00',
'2024-10-09T08:00',
'2024-10-09T09:00',
'2024-10-09T10:00',
'2024-10-09T11:00',
'2024-10-09T12:00',
'2024-10-09T13:00',
... | ifg-agentic | components/weather.tsx | TypeScript | 3c42679ed64fc174f9ca9b96ede34e1f2c825f5fd406dd6ad7b05f8708d717b6 | 1 | 896 |
,
sunrise: [
'2024-10-07T07:15',
'2024-10-08T07:16',
'2024-10-09T07:17',
'2024-10-10T07:18',
'2024-10-11T07:19',
],
sunset: [
'2024-10-07T19:00',
'2024-10-08T18:58',
'2024-10-09T18:57',
'2024-10-10T18:55',
'2024-10-11T18:54',
],
},
};
functi... | ifg-agentic | components/weather.tsx | TypeScript | a147b9376f509b1d4d6bc71c1bc26aa93b42b674ec85e6673aa2bd6e024ab44b | 2 | 870 |
import { forwardRef, type HTMLAttributes, type ComponentProps } from "react";
import { cn } from "@/lib/utils";
import { Button } from "@/components/ui/button";
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
import type { LucideIcon } from "lucide-react";
// Artifact Container
const... | ifg-agentic | components/ai-elements/artifact.tsx | TypeScript | 2d42f8afeb1ecabb23afcbc0011f7c9dda3f4c47e7383533e51604ba4d1ecb89 | 0 | 896 |
)}
{...props}
/>
));
ArtifactClose.displayName = "ArtifactClose";
// Artifact Content
const ArtifactContent = forwardRef<
HTMLDivElement,
HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn("flex-1 overflow-auto", className)}
... | ifg-agentic | components/ai-elements/artifact.tsx | TypeScript | 4e3e4a640339f1bfc32f9f3948cef90aafcc1f12ccdf46e122d785f4d2b18b32 | 1 | 116 |
'use client';
import { useControllableState } from '@radix-ui/react-use-controllable-state';
import { Badge } from '@/components/ui/badge';
import {
Collapsible,
CollapsibleContent,
CollapsibleTrigger,
} from '@/components/ui/collapsible';
import { cn } from '@/lib/utils';
import {
BrainIcon,
Chevr... | ifg-agentic | components/elements/chain-of-thought.tsx | TypeScript | b999fda1d1b3576a8c191fd44f6c87611912c478975d9362101ccf39e7a996ff | 0 | 896 |
import type { Experimental_GeneratedImage } from "ai";
import { cn } from "@/lib/utils";
export type ImageProps = Experimental_GeneratedImage & {
className?: string;
alt?: string;
};
export const Image = ({
base64,
uint8Array,
mediaType,
...props
}: ImageProps) => (
<img
{...props}
alt={props.al... | ifg-agentic | components/elements/image.tsx | TypeScript | e380afb146af9c4d626a0480785ed7b624acd2860fb96e4d14d54ded1ca55c31 | 0 | 130 |
..props}
/>
);
};
export type PromptInputSubmitProps = ComponentProps<typeof Button> & {
status?: ChatStatus;
};
export const PromptInputSubmit = ({
className,
variant = "default",
size = "icon",
status,
children,
...props
}: PromptInputSubmitProps) => {
let Icon = <SendIcon className="size-4" /... | ifg-agentic | components/elements/prompt-input.tsx | TypeScript | 222e33ada5b1f1367961c53ba05bd550039b8c012d020829a7c524fe9e2f6bff | 1 | 896 |
);
}}
className={cn(className)}
{...props}
>
{children}
</CommandItem>
);
export type PromptInputModelSelectValueProps = ComponentProps<
typeof SelectValue
>;
export const PromptInputModelSelectValue = ({
className,
...props
}: PromptInputModelSelectValueProps) => (
<SelectValue className=... | ifg-agentic | components/elements/prompt-input.tsx | TypeScript | 79768244506c2331c7701c86ad945d87628da4bd71d4fd3421eae6c3d3c5f315 | 2 | 77 |
}
/>
</>
)}
</CollapsibleTrigger>
);
}
);
export type ReasoningContentProps = ComponentProps<
typeof CollapsibleContent
> & {
children: string;
};
export const ReasoningContent = memo(
({ className, children, ...props }: ReasoningContentProps) => (
<CollapsibleConte... | ifg-agentic | components/elements/reasoning.tsx | TypeScript | 44e683a9c999a295733c88908775ac673b5b3265d20d32a82225969934d2a6ad | 1 | 212 |
"use client";
import * as React from "react";
import { cva, type VariantProps } from "class-variance-authority";
import { cn } from "@/lib/utils";
const alertVariants = cva(
"relative w-full rounded-lg border px-4 py-3 text-sm [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:to... | ifg-agentic | components/ui/alert.tsx | TypeScript | d87ddf502152df916021641db7241d9121b9de11b72a69b14570fc7eda833e7a | 0 | 366 |
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
const badgeVariants = cva(
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap ... | ifg-agentic | components/ui/badge.tsx | TypeScript | f41c11fc13e9a1f1b849349cb51b137ddd27de0a17c5339675c789d58f556cc4 | 0 | 436 |
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { ChevronRight, MoreHorizontal } from "lucide-react"
import { cn } from "@/lib/utils"
function Breadcrumb({ ...props }: React.ComponentProps<"nav">) {
return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />
}
functio... | ifg-agentic | components/ui/breadcrumb.tsx | TypeScript | 22f3f4c13ed1085c4131379bfccc6fb173a474f861636bc2736506820153aa08 | 0 | 619 |
"use client";
import { cn } from "@/lib/utils";
import { LoaderCircle } from "lucide-react";
import * as React from "react";
import { createContext, useContext } from "react";
import { CheckIcon } from "@radix-ui/react-icons";
// Types
type StepperContextValue = {
activeStep: number;
setActiveStep: (step: number)... | ifg-agentic | components/ui/stepper.tsx | TypeScript | 7527edcb2cd37dfe7e088f2b23f5b225dd27b8f8b26bb90d0f4df6cd9c2b995b | 0 | 896 |
className, children, ...props }, ref) => {
const { setActiveStep } = useStepper();
const { step, isDisabled } = useStepItem();
if (asChild) {
return <div className={className}>{children}</div>;
}
return (
<button
ref={ref}
className={cn(
"inline-flex items-cen... | ifg-agentic | components/ui/stepper.tsx | TypeScript | ff9cba09a239c20ee8a45a86571f62ff2abee29403f256f2d93e9d3067016e98 | 1 | 896 |
-[orientation=vertical]/stepper:w-0.5 group-data-[orientation=horizontal]/stepper:flex-1 group-data-[state=completed]/step:bg-primary",
className,
)}
{...props}
/>
);
},
);
StepperSeparator.displayName = "StepperSeparator";
export {
Stepper,
StepperDescription,
StepperIndica... | ifg-agentic | components/ui/stepper.tsx | TypeScript | f2940ecc7c100575f4b1cbcfe964f47785542a7398243eecfbb2aa39f0e63fc6 | 2 | 88 |
"use client"
import * as React from "react"
import { Tabs as TabsPrimitive } from "radix-ui"
import { cn } from "@/lib/utils"
function Tabs({
className,
...props
}: React.ComponentProps<typeof TabsPrimitive.Root>) {
return (
<TabsPrimitive.Root
data-slot="tabs"
className={cn("flex flex-col gap-... | ifg-agentic | components/ui/tabs.tsx | TypeScript | 8dcd3aebcc0c8618998c643e1bdfc0cf4951a3f5e2376433b1bffa9851488f86 | 0 | 440 |
import { useState, useEffect } from 'react';
const MOBILE_BREAKPOINT = 768;
export function useIsMobile() {
const [isMobile, setIsMobile] = useState<boolean | undefined>(
undefined,
);
useEffect(() => {
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
const onChange = () =>... | ifg-agentic | hooks/use-mobile.tsx | TypeScript | bbd2594afe84239e481ee7b99a695dc1f9af2dd7934c722d965b1da07a559d7c | 0 | 138 |
import { useCallback, useEffect, useRef, useState } from "react";
import useSWR from "swr";
type ScrollFlag = ScrollBehavior | false;
export function useScrollToBottom() {
const containerRef = useRef<HTMLDivElement>(null);
const endRef = useRef<HTMLDivElement>(null);
const [isAtBottom, setIsAtBottom] = useState... | ifg-agentic | hooks/use-scroll-to-bottom.tsx | TypeScript | 54711eef086f4b8436d2445cf442310577c4466defda9bc126c1abe42fef3bc3 | 0 | 543 |
again later.";
}
}
function getStatusCodeByType(type: ErrorType) {
switch (type) {
case "bad_request":
return 400;
case "unauthorized":
return 401;
case "forbidden":
return 403;
case "not_found":
return 404;
case "rate_limit":
return 429;
case "offline":
... | ifg-agentic | lib/errors.ts | TypeScript | 4fbc28845d3abc34043b8a42afd1ecdb7960ae831b44e587e82ee6ca69c39c1b | 1 | 75 |
import { z } from "zod";
import type { InferUITool, UIMessage } from "ai";
import type { Suggestion } from "./db/schema";
import type { ArtifactKind } from "@/components/artifact";
import type { listDatasets } from "./ai/tools/datasets/list-datasets";
import type { searchDatasets } from "./ai/tools/datasets";
import t... | ifg-agentic | lib/types.ts | TypeScript | 7b97f90f73cd8ab53de21421205234d2abc47ea10681d2111f4acf97f67a0175 | 0 | 512 |
import type { UserType } from '@/app/(auth)/auth';
import { chatModels, type ChatModel } from './models';
type Entitlements = {
maxMessagesPerDay: number;
availableChatModelIds: ChatModel['model'][];
};
export const entitlementsByUserType: Record<UserType, Entitlements> = {
/*
* For users without an account
... | ifg-agentic | lib/ai/entitlements.ts | TypeScript | 19f87a3de6bef75c11ce04dc1cad7d0fdcb76e157531370dad7d6470d84c9e08 | 0 | 153 |
import { simulateReadableStream } from 'ai';
import { MockLanguageModelV2 } from 'ai/test';
import { getResponseChunksByPrompt } from '@/tests/prompts/utils';
export const chatModel = new MockLanguageModelV2({
doGenerate: async () => ({
rawCall: { rawPrompt: null, rawSettings: {} },
finishReason: 'stop',
... | ifg-agentic | lib/ai/models.test.ts | TypeScript | 4c2d9b3d35b63560286768b47d32601f5ae19c5d338807e1c4b3fb7f3720c729 | 0 | 662 |
export const DEFAULT_CHAT_MODEL: string = "google/gemini-2.5-pro";
export type ChatModel = {
model: string;
context: string;
modelImage: string;
modelLink: string;
pricing: {
input: string;
output: string;
cachedInput: string;
cachedOutput: string;
};
providers: {
provider: string;
... | ifg-agentic | lib/ai/models.ts | TypeScript | 9ab324eee4ab66183d4dc2b4affe9968d5128fc3ff5f8dec7f36f6e5318de68f | 0 | 896 |
: "bedrock",
"icon": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Famazon%20bedrock.png&w=48&q=75"
},
{
"provider": "vertexAnthropic",
"icon": "https://verc... | ifg-agentic | lib/ai/models.ts | TypeScript | 0e8ca736c48f252f0740ea6794ce2f5193348a14de148e874e46e9bb934f28c8 | 1 | 896 |
provider": "openai",
"icon": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fopenai.png&w=48&q=75"
}
]
},
{
"model": "openai/gpt-5-nano",
"modelImage": "https://ver... | ifg-agentic | lib/ai/models.ts | TypeScript | 9a9338ff30c7ad6a5c554da353347557ff2eb1f3c94369150fd975057ee01565 | 2 | 896 |
": "vertexAnthropic",
"icon": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fvertex%20ai.png&w=48&q=75"
}
]
},
{
"model": "google/gemini-2.5-flash",
"modelImage": ... | ifg-agentic | lib/ai/models.ts | TypeScript | 53258e54799939b822b9673c46e732735880434066c785ca06bf00d68e9c76cd | 3 | 896 |
anthropic/claude-3-haiku",
"modelImage": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=64&q=75",
"modelLink": "https://vercel.com/ai-gateway/models/claude-3-haiku",
... | ifg-agentic | lib/ai/models.ts | TypeScript | 10f431ef2f5993f0530e18d83fd61043268015c9fe15c3456f4b8093a346ceff | 4 | 896 |
"model": "openai/gpt-5-mini",
"modelImage": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fopenai.png&w=64&q=75",
"modelLink": "https://vercel.com/ai-gateway/models/gpt-5-mini",
"co... | ifg-agentic | lib/ai/models.ts | TypeScript | 97adb0a3e71e34d52b0186e259c07d477694492f321e40317f6b4fe12d6ce27a | 5 | 896 |
modelLink": "https://vercel.com/ai-gateway/models/gemini-2.0-flash-lite",
"context": "1M",
"pricing": {
"input": "$0.07/M",
"output": "$0.30/M",
"cachedInput": "—",
"cachedOutput": "—"
},
"providers": [
{
"provider": "google",
"icon": "https://vercel.com/vc-... | ifg-agentic | lib/ai/models.ts | TypeScript | 341cde17d72b53b8aec1251d2ebbcdaf1b5678a2e96652ea77f5f881cd720a8a | 6 | 896 |
": "https://vercel.com/ai-gateway/models/gemini-2.5-flash-lite",
"context": "1M",
"pricing": {
"input": "$0.10/M",
"output": "$0.40/M",
"cachedInput": "$0.01/M",
"cachedOutput": "—"
},
"providers": [
{
"provider": "google",
"icon": "https://vercel.com/vc-ap-... | ifg-agentic | lib/ai/models.ts | TypeScript | 8e515f4d17fa1cb3f42523a64dc38735107a193f58ca8ef9dbb44d0579316504 | 7 | 896 |
": "anthropic",
"icon": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75"
},
{
"provider": "bedrock",
"icon": "https://vercel.com/vc-ap... | ifg-agentic | lib/ai/models.ts | TypeScript | c807e28ae55ad33c3769d090833334a64822cd020c864a19b25f4025e2079475 | 8 | 896 |
48&q=75"
}
]
},
{
"model": "openai/gpt-4.1",
"modelImage": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fopenai.png&w=64&q=75",
"modelLink": "https://vercel.com/ai-ga... | ifg-agentic | lib/ai/models.ts | TypeScript | cf9749514715e0c84c49333786deb47084d4b99c220de58f2ce6b69c386b6bb2 | 9 | 896 |
"modelLink": "https://vercel.com/ai-gateway/models/glm-4.6",
"context": "200K",
"pricing": {
"input": "$0.45/M",
"output": "$1.80/M",
"cachedInput": "$0.11/M",
"cachedOutput": "—"
},
"providers": [
{
"provider": "zai",
"icon": "https://vercel.com/vc-ap-verce... | ifg-agentic | lib/ai/models.ts | TypeScript | d3debb86628c467753c6a71579fd44bdd45d38eaa1c6e11da7c7200e121e2ae5 | 10 | 896 |
vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Ffireworks.png&w=48&q=75"
}
]
},
{
"model": "alibaba/qwen3-max",
"modelImage": "https://vercel.com/vc-ap-vercel-marketing/_next/image?... | ifg-agentic | lib/ai/models.ts | TypeScript | 89587cdbdaef371a000bff57bf3342bfa66159ccfa90c8ae1a2b7b6776c119a3 | 11 | 896 |
ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fdeepseek.png&w=48&q=75"
},
{
"provider": "novita",
"icon": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7... | ifg-agentic | lib/ai/models.ts | TypeScript | cfba70bc30b804fe0bca3a1e62476b6483194f7636accb8371dcc471bb761aa9 | 12 | 896 |
/nova-lite",
"context": "300K",
"pricing": {
"input": "$0.06/M",
"output": "$0.24/M",
"cachedInput": "—",
"cachedOutput": "—"
},
"providers": [
{
"provider": "bedrock",
"icon": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk... | ifg-agentic | lib/ai/models.ts | TypeScript | b236c4ec2cc73800d53dc0cb962daafc32f6c885222474c18a37846a647fffa4 | 13 | 896 |
?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75"
}
]
},
{
"model": "moonshotai/kimi-k2",
"modelImage": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.ver... | ifg-agentic | lib/ai/models.ts | TypeScript | c635cece5ba8cfc0979883826c056bbcfd26811ffabaf0ce91b1cd7bcd477bb8 | 14 | 896 |
https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fdeepseek.png&w=64&q=75",
"modelLink": "https://vercel.com/ai-gateway/models/deepseek-v3",
"context": "164K",
"pricing": {
"input": "$0.77/M",
"output": "$0.77/M",
"cachedInput... | ifg-agentic | lib/ai/models.ts | TypeScript | ed3a61dcbe39299fed899d8e287b6d9653648d66655e392831d0f5ebf75f4397 | 15 | 896 |
storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fopenai.png&w=48&q=75"
}
]
},
{
"model": "google/gemini-2.5-flash-lite-preview-09-2025",
"modelImage": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-ass... | ifg-agentic | lib/ai/models.ts | TypeScript | d29ac786031ba3fc02fed798e93d13e18b2cdda9e2d6a3541b9a1cdbbadcf67e | 16 | 896 |
F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=64&q=75",
"modelLink": "https://vercel.com/ai-gateway/models/claude-opus-4.1",
"context": "200K",
"pricing": {
"input": "$15.00/M",
"output": "$75.00/M",
"cachedInput": ... | ifg-agentic | lib/ai/models.ts | TypeScript | ca19cc47378e6e1d086186c52225e8542f8b157138f87ca797f4d3d394e09928 | 17 | 896 |
.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fvertex%20ai.png&w=48&q=75"
}
]
},
{
"model": "alibaba/qwen3-coder",
"modelImage": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fs... | ifg-agentic | lib/ai/models.ts | TypeScript | 44d63cccc3811cd914e6a5009c0bf4c6b567039be6e82d8fc266cd8609a970f6 | 18 | 896 |
2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fgoogle.png&w=64&q=75",
"modelLink": "https://vercel.com/ai-gateway/models/gemini-2.5-flash-image",
"context": "33K",
"pricing": {
"input": "$0.30/M",
"output": "$2.50/M",
"cachedInput": "—",
"cachedOutput": "—"
},
"provider... | ifg-agentic | lib/ai/models.ts | TypeScript | 355a5e8050b4fec184c195bde29aa7a9882f8c3fbfc76c319bfff9e2fe249f1f | 19 | 896 |
cachedInput": "—",
"cachedOutput": "—"
},
"providers": [
{
"provider": "xai",
"icon": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75"
... | ifg-agentic | lib/ai/models.ts | TypeScript | 3a3b1c6d3530e14fb1932f2eec0588491a12d9fe08e58a550f354de0f2177129 | 20 | 896 |
gateway%2Flogos%2Fxai.png&w=48&q=75"
}
]
},
{
"model": "openai/o4-mini",
"modelImage": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fopenai.png&w=64&q=75",
"modelLink... | ifg-agentic | lib/ai/models.ts | TypeScript | 5f9d02f053536bce4f6ab20f070858d4277d32b59fd323cbf086e1976a14da30 | 21 | 896 |
Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fdeepseek.png&w=64&q=75",
"modelLink": "https://vercel.com/ai-gateway/models/deepseek-r1",
"context": "164K",
"pricing": {
"input": "$0.79/M",
"output": "$4.00/M",
"cachedInput": "—",
"cachedOutput": "—"
},
"providers": [
{
"... | ifg-agentic | lib/ai/models.ts | TypeScript | ec79f1934114b192410da973055de4103b0c22fd967a9fa53c79ad591d84df99 | 22 | 896 |
Flogos%2Fmistral.png&w=64&q=75",
"modelLink": "https://vercel.com/ai-gateway/models/codestral",
"context": "256K",
"pricing": {
"input": "$0.30/M",
"output": "$0.90/M",
"cachedInput": "—",
"cachedOutput": "—"
},
"providers": [
{
"provider": "mistral",
"i... | ifg-agentic | lib/ai/models.ts | TypeScript | 7090dc989e6da80dc424c7dac92bc9505c479294cc267295c6468d20f1d11dfc | 23 | 896 |
": "bedrock",
"icon": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Famazon%20bedrock.png&w=48&q=75"
},
{
"provider": "fireworks",
"icon": "https://vercel.co... | ifg-agentic | lib/ai/models.ts | TypeScript | a8d195168f27fd043b5827cefa9f20575bc8c68be99766a35cb823c24c08ba6c | 24 | 896 |
modelLink": "https://vercel.com/ai-gateway/models/claude-3.5-sonnet",
"context": "200K",
"pricing": {
"input": "$3.00/M",
"output": "$15.00/M",
"cachedInput": "$0.30/M",
"cachedOutput": "$3.75/M"
},
"providers": [
{
"provider": "bedrock",
"icon": "https://ve... | ifg-agentic | lib/ai/models.ts | TypeScript | f045925eae945d9f739bab737e12d7ca8890c14a9ebbbb8a07958823889aeb96 | 25 | 896 |
",
"icon": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Famazon%20bedrock.png&w=48&q=75"
},
{
"provider": "vertexAnthropic",
"icon": "https://vercel.com/vc-... | ifg-agentic | lib/ai/models.ts | TypeScript | f19a58bfce510951ebd708f75eb97cbdbd85ee97c3123a225ecce8e6d8106d8b | 26 | 896 |
icon": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75"
}
]
},
{
"model": "xai/grok-3-fast",
"modelImage": "https://vercel.com/vc-ap-vercel-marketing/_nex... | ifg-agentic | lib/ai/models.ts | TypeScript | 2134b81a184be027781db59798e4ab4161c73e4a0d1549d71fb49c18025b407c | 27 | 896 |
/ai-gateway/models/qwen-3-14b",
"context": "41K",
"pricing": {
"input": "$0.06/M",
"output": "$0.24/M",
"cachedInput": "—",
"cachedOutput": "—"
},
"providers": [
{
"provider": "deepinfra",
"icon": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=ht... | ifg-agentic | lib/ai/models.ts | TypeScript | 311dde84c9699a5c74efbedd475465d460951c86778e9de79ddcda6450180b72 | 28 | 896 |
o3-mini",
"context": "200K",
"pricing": {
"input": "$1.10/M",
"output": "$4.40/M",
"cachedInput": "$0.55/M",
"cachedOutput": "—"
},
"providers": [
{
"provider": "azure",
"icon": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uh... | ifg-agentic | lib/ai/models.ts | TypeScript | a78687563597d51f2a24430576b794f4853e7a51f689deeb9ec0edab916da069 | 29 | 896 |
url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Falibaba%20cloud.png&w=64&q=75",
"modelLink": "https://vercel.com/ai-gateway/models/qwen3-vl-instruct",
"context": "131K",
"pricing": {
"input": "$0.70/M",
"output": "$2.80/M",
... | ifg-agentic | lib/ai/models.ts | TypeScript | 5105bc228c59a4eadf4e0edabcca2e7303fc5dd4cb5e36b130f5c9f5a775f7d5 | 30 | 896 |
public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fzai.png&w=64&q=75",
"modelLink": "https://vercel.com/ai-gateway/models/glm-4.5",
"context": "128K",
"pricing": {
"input": "$0.60/M",
"output": "$2.20/M",
"cachedInput": "—",
"cachedOutput": "—"
},... | ifg-agentic | lib/ai/models.ts | TypeScript | e0575f0cfa1225c0df92ce5ed98fcb2f6f410106c49f7f83e1660e78077eefc5 | 31 | 896 |
Fai-gateway%2Flogos%2Fmistral.png&w=48&q=75"
}
]
},
{
"model": "perplexity/sonar-reasoning-pro",
"modelImage": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fperplexity.pn... | ifg-agentic | lib/ai/models.ts | TypeScript | f1d9ff7c3c82cc24e6f0bcff1a4a0e7a79a03d16a597cad02014b8b3b37f479f | 32 | 896 |
-gateway%2Flogos%2Fmorph.png&w=48&q=75"
}
]
},
{
"model": "xai/grok-3-mini-fast",
"modelImage": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=64&q=75",
"mod... | ifg-agentic | lib/ai/models.ts | TypeScript | aa157ccc0019525b312287d7be0c12f67ba3de4be0cc0fea0f5dbe3a65362e0c | 33 | 896 |
Fdocs%2Fai-gateway%2Flogos%2Falibaba%20cloud.png&w=48&q=75"
},
{
"provider": "novita",
"icon": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fnovita.png&w=48&q=75"
... | ifg-agentic | lib/ai/models.ts | TypeScript | 10721e31fd8e45fd7876e62b7b7da022e9f840815dabe0cdb82ce15b4e362f1a | 34 | 896 |
—"
},
"providers": [
{
"provider": "novita",
"icon": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fnovita.png&w=48&q=75"
},
{
"provider": "zai... | ifg-agentic | lib/ai/models.ts | TypeScript | 6f801b266476ca5510dafa7b56f1ac4b3164ffbc4553cee7cf71a88817029a56 | 35 | 896 |
w=64&q=75",
"modelLink": "https://vercel.com/ai-gateway/models/magistral-small-2506",
"context": "128K",
"pricing": {
"input": "$0.50/M",
"output": "$1.50/M",
"cachedInput": "—",
"cachedOutput": "—"
},
"providers": [
{
"provider": "mistral",
"icon": "htt... | ifg-agentic | lib/ai/models.ts | TypeScript | d616d50ec6ea5408cebaf2e1243d0be64a17c23277d88f6abce3eb371b1f7765 | 36 | 896 |
.png&w=64&q=75",
"modelLink": "https://vercel.com/ai-gateway/models/mistral-medium",
"context": "128K",
"pricing": {
"input": "$0.40/M",
"output": "$2.00/M",
"cachedInput": "—",
"cachedOutput": "—"
},
"providers": [
{
"provider": "mistral",
"icon": "http... | ifg-agentic | lib/ai/models.ts | TypeScript | 0bb04fb4075cc823218ca225c66579b1c5d74e63dff6adc811ab506ee56763e5 | 37 | 896 |
com/ai-gateway/models/gpt-5-pro",
"context": "400K",
"pricing": {
"input": "$15.00/M",
"output": "$120.00/M",
"cachedInput": "—",
"cachedOutput": "—"
},
"providers": [
{
"provider": "openai",
"icon": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url... | ifg-agentic | lib/ai/models.ts | TypeScript | fc615da0bef1f8bc2c85c4c31653c1716547ecba0fca319f0ec678abbcf6f9f9 | 38 | 896 |
3.2-90b",
"context": "128K",
"pricing": {
"input": "$0.72/M",
"output": "$0.72/M",
"cachedInput": "—",
"cachedOutput": "—"
},
"providers": [
{
"provider": "bedrock",
"icon": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7ss... | ifg-agentic | lib/ai/models.ts | TypeScript | 2223e12cb8fb897b4f12d6ea1ad013df94fe4344360f034422b09fc9d24f2b9d | 39 | 896 |
?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fmistral.png&w=64&q=75",
"modelLink": "https://vercel.com/ai-gateway/models/pixtral-12b",
"context": "128K",
"pricing": {
"input": "$0.15/M",
"output": "$0.15/M",
"cachedI... | ifg-agentic | lib/ai/models.ts | TypeScript | 5e28ede3605543c09f532e7ec6f23abb9f976797a5d7b9d0cb8323ba1b0919e3 | 40 | 896 |
public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fmistral.png&w=48&q=75"
}
]
},
{
"model": "meta/llama-3.2-11b",
"modelImage": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2F... | ifg-agentic | lib/ai/models.ts | TypeScript | 770b2ef7ae5cc69bd4cff0ab258b30eb6d79102b054e6e8424169de9cf37ea20 | 41 | 896 |
-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Falibaba%20cloud.png&w=48&q=75"
}
]
},
{
"model": "alibaba/qwen-3-30b",
"modelImage": "https://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fd... | ifg-agentic | lib/ai/models.ts | TypeScript | e0c4d783f77ab2646ee264c0f7989675f5ce0b49e41727462468d63c92ea29a5 | 42 | 896 |
A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fcohere.png&w=64&q=75",
"modelLink": "https://vercel.com/ai-gateway/models/command-a",
"context": "256K",
"pricing": {
"input": "$2.50/M",
"output": "$10.00/M",
"cachedInput": "—",
... | ifg-agentic | lib/ai/models.ts | TypeScript | a247d58ec3e93fcfdd035555267c8621aff4d6153fdfcbdced0b0e1d8540f4e9 | 43 | 896 |
.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fmeta.png&w=64&q=75",
"modelLink": "https://vercel.com/ai-gateway/models/llama-3.2-3b",
"context": "128K",
"pricing": {
"input": "$0.15/M",
"output": "$0.15/M",
"cachedInput": "—",
"cachedOutput": "—"
},... | ifg-agentic | lib/ai/models.ts | TypeScript | c8376cd62749b507dc47a56a179dfd1e81ec85eadcef8cd0cce5d27103f5c49e | 44 | 896 |
%2Fdocs%2Fai-gateway%2Flogos%2Fmistral.png&w=64&q=75",
"modelLink": "https://vercel.com/ai-gateway/models/mixtral-8x22b-instruct",
"context": "66K",
"pricing": {
"input": "$1.20/M",
"output": "$1.20/M",
"cachedInput": "—",
"cachedOutput": "—"
},
"providers": [
{
... | ifg-agentic | lib/ai/models.ts | TypeScript | 8c9c6f2d2d00d628c2ee647dff6431b7b81af43bc1001238b7c5c5f5a9d81377 | 45 | 896 |
Flogos%2Fopenai.png&w=64&q=75",
"modelLink": "https://vercel.com/ai-gateway/models/gpt-3.5-turbo-instruct",
"context": "8K",
"pricing": {
"input": "$1.50/M",
"output": "$2.00/M",
"cachedInput": "—",
"cachedOutput": "—"
},
"providers": [
{
"provider": "openai",
... | ifg-agentic | lib/ai/models.ts | TypeScript | a047c84cf70256d578898d7dad1e6680e83c283f90b8c9a12c4c4e1e2a66cd37 | 46 | 747 |
import type { ArtifactKind } from "@/components/artifact";
import type { Geo } from "@vercel/functions";
// ============================================================================
// CORE SYSTEM PROMPTS
// ============================================================================
export const artifactsPrompt =... | ifg-agentic | lib/ai/prompts.ts | TypeScript | bd861c2c6d4caa5d010e98e95a2be04c9dcee41920fe9db64deab1537cb70deb | 0 | 896 |
made-up data
## TOOLS AVAILABLE
**Planning:** createAnalysisPlan
**Discovery:** searchDatasets, listDatasets, getDatasetDetails
**Analysis:** exploreCsvData, createDocument, updateDocument, requestSuggestions
## RESPONSE PATTERNS
### WRONG: Describing datasets in text
\`\`\`
"Hier sind Datensätze zu Bildung:
1.... | ifg-agentic | lib/ai/prompts.ts | TypeScript | 0bdacd1901fe504e31af7a12d4543f1f9af8ec3b596460906477db27913a55be | 1 | 896 |
==========================
// SPECIALIZED PROMPTS
// ============================================================================
export type RequestHints = {
latitude: Geo["latitude"];
longitude: Geo["longitude"];
city: Geo["city"];
country: Geo["country"];
};
export const getRequestPromptFromHints = (reques... | ifg-agentic | lib/ai/prompts.ts | TypeScript | 0c7b3a187108876c09a958b9af53a3ad0507dfa5950fe2c8667aba4fe31e7c9f | 2 | 896 |
['Exact Column Name']
# Visualization
plt.figure(figsize=(10, 6))
# ... plotting code ...
plt.xlabel('...', fontsize=11)
plt.ylabel('...', fontsize=11)
plt.title('...', fontsize=13, fontweight='bold')
plt.legend()
plt.grid(alpha=0.3)
plt.tight_layout()
plt.show()
# Execute
... | ifg-agentic | lib/ai/prompts.ts | TypeScript | dd006a559088bb44e99fa63e06a1c054b59b65fdbbb52afa22a8435219e86163 | 3 | 552 |
import { gateway } from "@ai-sdk/gateway";
import {
customProvider,
} from "ai";
import { chatModels } from "./models";
export const myProvider = customProvider({
languageModels: Object.fromEntries(
chatModels.map((model) => [
model.model,
gateway.languageModel(model.model),
])
),
}); | ifg-agentic | lib/ai/providers.ts | TypeScript | 8317360b678c94f69d749db1c7854b680f30b6a9f4ce64076b8f6c8c04e50ffb | 0 | 78 |
import type { RequestType } from "@/lib/types/data-request";
// System prompts for different data request AI tools
export const DATA_REQUEST_SYSTEM_PROMPT = `You are an expert AI assistant specialized in Austrian data protection and transparency laws. You help citizens create effective and legally compliant data requ... | ifg-agentic | lib/ai/prompts/data-request-prompts.ts | TypeScript | d6e5e8ab077b64f974392f22a89f733fdef64b9dbcdffd6b88e47210f8d2aca1 | 0 | 896 |
government for the request type
5. **Organizational Structure**: Direct responsibility vs. coordination role
**Scoring Factors:**
- Relevance Score (0-1): How well the agency matches the request
- Response Reliability: Historical performance and capacity
- Processing Time: Typical turnaround for similar requests
- Suc... | ifg-agentic | lib/ai/prompts/data-request-prompts.ts | TypeScript | 885f002193eea56dfc7335c4371a67f9bed5e06721ecf73115280010107b378d | 1 | 896 |
institutional affiliations and research approval processes.",
commercial: "Focus on business and commercial applications. Emphasize business model viability, market analysis, data security measures, and revenue implications. Consider competitive sensitivity and commercial confidentiality.",
journalism: "Focus on ... | ifg-agentic | lib/ai/prompts/data-request-prompts.ts | TypeScript | 157c6a887f1ac093e77d834f0935c89c84084b93b36c22ff7d935a32ac960e4b | 2 | 506 |
const BASE_URL = "https://www.data.gv.at/"
export const buildUrl = (path: string, params?: Record<string, string | number | boolean | undefined>) => {
const url = new URL(`${BASE_URL}${path}`);
if (params) {
for (const [key, value] of Object.entries(params)) {
if (value !== undefined) {
... | ifg-agentic | lib/ai/tools/config.ts | TypeScript | c7b5995e1624f9e4855fd1a00396e1988b2cd51cf1d107c71a991beca0b7211c | 0 | 120 |
export { createDocument } from './documents/create-document';
export { updateDocument } from './documents/update-document';
export { requestSuggestions } from './documents/request-suggestions';
export { exploreCsvData } from './datasets/explore-csv-data';
| ifg-agentic | lib/ai/tools/index.ts | TypeScript | ea7af2bb155c56208f0715ad2369a7b6e9465fee07c283d48257714676e21c21 | 0 | 62 |
import { tool, type UIMessageStreamWriter } from "ai";
import { z } from "zod";
import type { Session } from "next-auth";
import type { ChatMessage } from "@/lib/types";
type AnalysisPlanProps = {
session: Session;
dataStream: UIMessageStreamWriter<ChatMessage>;
};
export const createAnalysisPlan = ({ session... | ifg-agentic | lib/ai/tools/analysis/create-analysis-plan.ts | TypeScript | 2e2a4729753cc16efd87999c065fc54fb7eef1e3140a2091d88df5c6f05d1960 | 0 | 360 |
/**
* Analysis Planning Tools
*
* Tools for planning and visualizing data analysis workflows
*/
export { createAnalysisPlan } from './create-analysis-plan';
| ifg-agentic | lib/ai/tools/analysis/index.ts | TypeScript | cdb69bdf687c36796bfd5c9f1e59110278efa914d63af7588106c6cda8f98e17 | 0 | 34 |
import { tool, type UIMessageStreamWriter } from "ai";
import { z } from "zod";
import type { Session } from "next-auth";
import type { ChatMessage } from "@/lib/types";
type CsvExplorationResult = {
datasetName: string;
url: string;
totalRows: number;
totalColumns: number;
columns: Array<{
... | ifg-agentic | lib/ai/tools/datasets/explore-csv-data.ts | TypeScript | 569fd592fdce5b2127e514f4cd96b79a21fbf8d5f392e288096437b25edf456a | 0 | 896 |
delimiter = detectDelimiter(csvText);
const allLines = csvText.split('\n');
const nonEmptyLines = allLines.filter(line => line.trim());
const emptyRows = allLines.length - nonEmptyLines.length;
if (nonEmptyLines.length === 0) {
throw new Error("CSV contains no data rows");
}
let heade... | ifg-agentic | lib/ai/tools/datasets/explore-csv-data.ts | TypeScript | a2bf04da3e4b237481409007c697e04b93e4bf066a643429ee1c8e30912cd4c1 | 1 | 896 |
char === delimiter && !inQuotes) {
result.push(current.trim());
current = '';
i++;
} else {
current += char;
i++;
}
}
result.push(current.trim());
return result;
}
function findDuplicates(arr: string[]): string[] {
const coun... | ifg-agentic | lib/ai/tools/datasets/explore-csv-data.ts | TypeScript | c9ec1e9b8c7874511a11c69a65a79138da0582c1a5913d55a943a26d5997ae52 | 2 | 536 |
import { tool, type UIMessageStreamWriter } from 'ai';
import { z } from 'zod';
import type { Session } from 'next-auth';
import type { ChatMessage } from '@/lib/types';
import { buildUrl } from '../config';
type DatasetToolsProps = {
session: Session;
dataStream: UIMessageStreamWriter<ChatMessage>;
};
expor... | ifg-agentic | lib/ai/tools/datasets/get-dataset-details.ts | TypeScript | 35f067ae28f9e5740562ba79d7dfa667a3e9fd0c37a491c9b38f1263ee1d2777 | 0 | 593 |
/**
* Dataset Tools
*
* Comprehensive suite of tools for discovering, analyzing, and working
* with datasets from the piveau hub-repo data catalog.
*/
// Core dataset tools
export { searchDatasets } from './search-datasets';
export { listDatasets } from './list-datasets';
export { exploreCsvData } from './explor... | ifg-agentic | lib/ai/tools/datasets/index.ts | TypeScript | 168821f8851cedeb3e49d7f99c203bc5cc4dddecb5d696a46cc76a5aa22956bc | 0 | 79 |
import { tool, type UIMessageStreamWriter } from 'ai';
import { z } from 'zod';
import type { Session } from 'next-auth';
import type { ChatMessage } from '@/lib/types';
import { buildUrl } from '../config';
type DatasetToolsProps = {
session: Session;
dataStream: UIMessageStreamWriter<ChatMessage>;
};
export... | ifg-agentic | lib/ai/tools/datasets/list-datasets.ts | TypeScript | ea4b81109fdf969768b087f5c1a926d93a35f69c7f930cc22fb151b82b7ea1d8 | 0 | 852 |
import { tool, type UIMessageStreamWriter } from 'ai';
import { z } from 'zod';
import type { Session } from 'next-auth';
import type { ChatMessage } from '@/lib/types';
import { buildUrl } from '../config';
type DatasetToolsProps = {
session: Session;
dataStream: UIMessageStreamWriter<ChatMessage>;
};
export... | ifg-agentic | lib/ai/tools/datasets/search-datasets.ts | TypeScript | a79410343d21bc1f59c56a89ed41ef7cb372f3cb15cc6fd1df7f180b27a58381 | 0 | 896 |
page,
sort,
facetOperator,
facetGroupOperator,
dataServices,
includes,
facets: facetsString,
});
const response = await fetch(url, {
method: 'GET',
headers: {
... | ifg-agentic | lib/ai/tools/datasets/search-datasets.ts | TypeScript | eb5883fde6ae4f845265e48c07829e5f229763099a448d2950d0ae0f6de63e43 | 1 | 259 |
import { generateUUID } from "@/lib/utils";
import { tool, type UIMessageStreamWriter } from "ai";
import { z } from "zod";
import type { Session } from "next-auth";
import {
artifactKinds,
documentHandlersByArtifactKind,
} from "@/lib/artifacts/server";
import type { ChatMessage } from "@/lib/types";
type CreateD... | ifg-agentic | lib/ai/tools/documents/create-document.ts | TypeScript | ec1b9d295aadbaadce783b2e24dc7db21912f1efc662b69fdd021445a9845e57 | 0 | 896 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.