@veris-ai/sdk
Version:
A TypeScript package for Veris AI tools
66 lines • 1.66 kB
TypeScript
/**
* Type definitions for Veris AI SDK
*/
import { JsonSchema7Type } from "zod-to-json-schema";
export declare enum ResponseExpectation {
NONE = "none",
REQUIRED = "required",
AUTO = "auto"
}
export interface ToolCallPayload {
session_id?: string;
response_expectation?: string;
cache_response?: boolean;
tool_call: {
function_name: string;
parameters: Record<string, {
value: string;
type: string;
}> | JsonSchema7Type;
return_type: string;
docstring: string;
};
}
export interface MockResponse {
result: unknown;
}
export interface ContextType {
request_context?: {
lifespan_context?: {
session_id?: string;
};
};
}
import { z } from 'zod';
export interface DecoratorOptions {
mode?: 'tool' | 'function';
description?: string;
cacheResponse?: boolean;
expectsResponse?: boolean;
parametersSchema?: z.ZodSchema;
outputSchema?: z.ZodSchema;
}
export interface MockParams {
name: string;
description: string;
parametersSchema: z.ZodSchema;
outputSchema?: z.ZodSchema;
mode?: 'tool' | 'function';
cacheResponse?: boolean;
expectsResponse?: boolean;
}
export interface MCPServerOptions {
name: string;
description: string;
transport?: 'http' | 'sse' | 'stdio';
requireAuth?: boolean;
port?: number;
}
export interface RegisteredFunction {
func: (args: Record<string, unknown>) => Promise<unknown>;
name: string;
description: string;
parametersSchema: z.ZodSchema;
outputSchema?: z.ZodSchema;
}
//# sourceMappingURL=types.d.ts.map