LLM operations with governance, prompt versioning, and agent orchestration.
Centralized AI operations layer for model/platform setup, utilization control, dynamic prompts, call-history outcomes, agent lifecycle management, and AI execution diagnostics.
import { useState } from 'react';
import { AiWidget, AiInput, AiTextarea, CardIcon } from '@cleen/cleen-components';
import { useAgentChain, usePrompts } from '@/hooks/useAi';
export function AIPromptStudio({ agentChainId }) {
const { chain, steps, runStep } = useAgentChain(agentChainId);
const { prompts } = usePrompts();
const [input, setInput] = useState('');
return (
<div className="ai-studio">
<h1>{chain?.name}</h1>
<div className="ai-prompt-grid">
{prompts.map((p) => (
<CardIcon key={p.id} icon={p.icon} title={p.name} description={p.summary} />
))}
</div>
<AiWidget chain={chain} steps={steps} />
<AiTextarea
value={input}
onChange={setInput}
onSubmit={() => runStep({ stepId: chain.firstStepId, payload: input })}
/>
</div>
);
}Internal code areas in the licensed Full-Stack codebase that back this module.
ApiAI model/platform/utilization endpointsApiAI prompt and version endpointsApiAI agent endpointsA quick visual of how AI Models, Prompts, Agents, Avatars participates across the CleenUI stack, alongside the named operations it adds to the API surface.
Each operation maps to an endpoint in the licensed C# Web API surface.