Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
// This file is auto-generated by @hey-api/openapi-ts
import { oc } from '@orpc/contract'
import * as z from 'zod'
import {
zCompletionRequestError,
zModelCurrentlyNotSupportError,
zProviderNotInitializeError,
zProviderQuotaExceededError,
} from './zod.gen.ts'
import { zPostRuleGenerateBody, zPostRuleGenerateResponse } from './zod.gen.ts'
/**
* Generate rule configuration using LLM
*/
export const post = oc
.route({
description: 'Generate rule configuration using LLM',
inputStructure: 'detailed',
method: 'POST',
operationId: 'postRuleGenerate',
path: '/rule-generate',
tags: ['console'],
})
.input(z.object({ body: zPostRuleGenerateBody }))
.output(zPostRuleGenerateResponse)
.errors({
completion_request_error: { status: 400, data: zCompletionRequestError },
model_currently_not_support: { status: 400, data: zModelCurrentlyNotSupportError },
provider_not_initialize: { status: 400, data: zProviderNotInitializeError },
provider_quota_exceeded: { status: 400, data: zProviderQuotaExceededError },
})
export const ruleGenerate = {
post,
}
export const contract = {
ruleGenerate,
}