MATIH Platform is in active MVP development. Documentation reflects current implementation status.
15. Workbench Architecture
Agent Studio

Agent Studio

The Agent Studio at frontend/agentic-workbench/src/components/AgentStudio/ provides a 6-step wizard for creating and configuring AI agents with template selection, tool configuration, prompt engineering, workflow design, and guardrail setup.


Components (16 files)

ComponentFilePurpose
AgentStudioAgentStudio.tsxMain wizard container
TemplateSelectorTemplateSelector.tsxAgent template selection
AgentConfigFormAgentConfigForm.tsxBasic agent configuration
ToolSelectorToolSelector.tsxTool discovery and configuration
PromptEditorPromptEditor.tsxPrompt template editor
ReviewPanelReviewPanel.tsxConfiguration review and create
WorkflowDesignerWorkflowDesigner.tsxVisual workflow designer
WorkflowCanvasWorkflowCanvas.tsxReact Flow workflow canvas
WorkflowDesignerNodeWorkflowDesignerNode.tsxCustom workflow node
WorkflowNodePaletteWorkflowNodePalette.tsxNode type catalog
WorkflowNodeConfigPanelWorkflowNodeConfigPanel.tsxNode configuration panel
WorkflowValidatorWorkflowValidator.tsxWorkflow validation rules
GuardrailConfiguratorGuardrailConfigurator.tsxSafety guardrail setup
PreviewModePreviewMode.tsxAgent test/preview interface
DeploymentFlowDeploymentFlow.tsxDeployment configuration

Wizard Steps

const STEPS = [
  { id: 'template', label: 'Template', description: 'Choose a starting template' },
  { id: 'config', label: 'Configure', description: 'Set up basic configuration' },
  { id: 'tools', label: 'Tools', description: 'Select and configure tools' },
  { id: 'prompts', label: 'Prompts', description: 'Define agent prompts' },
  { id: 'workflow', label: 'Workflows', description: 'Design agent workflows' },
  { id: 'review', label: 'Review', description: 'Review and create' },
];

Agent Configuration

interface AgentConfiguration {
  llm: LLMConfig;
  tools: ToolConfig[];
  prompts: PromptConfig[];
  memory: { type: 'conversation'; maxTokens: number };
  guardrails: {
    inputValidation: boolean;
    outputValidation: boolean;
    contentFiltering: boolean;
  };
}
 
const DEFAULT_LLM_CONFIG: LLMConfig = {
  provider: 'openai',
  model: 'gpt-4-turbo',
  temperature: 0.7,
  maxTokens: 4096,
};

Hooks

useAgentStudioAPI

File: frontend/agentic-workbench/src/components/AgentStudio/useAgentStudioAPI.ts

Integration with the AgentStudioApiClient for template loading, tool discovery, and agent persistence.

useWorkflow

File: frontend/agentic-workbench/src/components/AgentStudio/useWorkflow.ts

Manages the workflow designer state including node CRUD, edge management, and validation.