11import Link from 'next/link' ;
22import Image from 'next/image' ;
3+ import Footer from '@/components/Footer' ;
34
45export default function FrameworkPage ( ) {
56 return (
@@ -85,7 +86,7 @@ export default function FrameworkPage() {
8586 < div className = "mb-4" >
8687 < Image src = "/images/icons/file-terminal.svg" alt = "" width = { 32 } height = { 32 } className = "opacity-70" />
8788 </ div >
88- < h3 className = "text-xl font-bold mb-3" > Code Health Assistant < span className = "text-xs font-normal text-[var(--primary)] ml-2" > NEW </ span > </ h3 >
89+ < h3 className = "text-xl font-bold mb-3" > Code Health Assistant</ h3 >
8990 < p className = "text-[var(--text-secondary)]" >
9091 Automated code quality checks, auto-fix capabilities, and health trend tracking via CLI.
9192 </ p >
@@ -95,7 +96,7 @@ export default function FrameworkPage() {
9596 < div className = "mb-4" >
9697 < Image src = "/images/icons/briefcase.svg" alt = "" width = { 32 } height = { 32 } className = "opacity-70" />
9798 </ div >
98- < h3 className = "text-xl font-bold mb-3" > Smart Model Routing < span className = "text-xs font-normal text-[var(--primary)] ml-2" > NEW </ span > </ h3 >
99+ < h3 className = "text-xl font-bold mb-3" > Smart Model Routing</ h3 >
99100 < p className = "text-[var(--text-secondary)]" >
100101 80-96% cost reduction with intelligent routing: Haiku for simple tasks, Sonnet for code, Opus for architecture.
101102 </ p >
@@ -175,33 +176,29 @@ export default function FrameworkPage() {
175176 </ div >
176177
177178 < div >
178- < h3 className = "text-2xl font-bold mb-4" > Basic Usage </ h3 >
179+ < h3 className = "text-2xl font-bold mb-4" > Socratic Agent Creation </ h3 >
179180 < pre className = "bg-[var(--foreground)] text-[var(--background)] p-6 rounded-lg overflow-x-auto text-sm" >
180- { `from empathy_framework import BaseWizard
181+ { `from empathy_os.socratic import SocraticWorkflowBuilder
181182
182- class MyWizard(BaseWizard):
183- @property
184- def name(self) -> str:
185- return "My Custom Wizard"
183+ # Describe your goal - the framework guides you through questions
184+ builder = SocraticWorkflowBuilder()
185+ session = builder.start_session("I want to automate code reviews")
186186
187- @property
188- def level(self) -> int:
189- return 4 # Level 4: Anticipatory
187+ # Get clarifying questions
188+ form = builder.get_next_questions(session)
189+ print(form.questions[0].text)
190+ # "What programming languages does your team primarily use?"
190191
191- async def analyze(self, context):
192- # Your anticipatory logic here
193- predictions = self.predict_future_issues(context)
194- recommendations = self.generate_recommendations(predictions)
192+ # Answer questions
193+ session = builder.submit_answers(session, {
194+ "languages": ["python", "typescript"],
195+ "focus_areas": ["security", "performance"]
196+ })
195197
196- return {
197- "predictions": predictions,
198- "recommendations": recommendations,
199- "confidence": 0.85
200- }
201-
202- # Use your wizard
203- wizard = MyWizard()
204- result = await wizard.analyze({"data": your_data})` }
198+ # Generate optimized workflow when ready
199+ if builder.is_ready_to_generate(session):
200+ workflow = builder.generate_workflow(session)
201+ print(f"Generated {len(workflow.agents)} agents")` }
205202 </ pre >
206203 </ div >
207204 </ div >
@@ -273,6 +270,12 @@ result = await wizard.analyze({"data": your_data})`}
273270 10+ wizards with domain metadata
274271 </ span >
275272 </ li >
273+ < li className = "flex items-start gap-2" >
274+ < span className = "text-purple-500 font-mono text-sm mt-1" > SocraticWorkflowBuilder</ span >
275+ < span className = "text-[var(--text-secondary)] text-sm" >
276+ Guided agent creation through questions
277+ </ span >
278+ </ li >
276279 </ ul >
277280 </ div >
278281 </ div >
@@ -337,27 +340,7 @@ result = await wizard.analyze({"data": your_data})`}
337340 </ div >
338341 </ section >
339342
340- { /* Footer */ }
341- < footer className = "py-12 border-t border-[var(--border)]" >
342- < div className = "container" >
343- < div className = "flex flex-col md:flex-row justify-between items-center gap-6" >
344- < div className = "text-sm text-[var(--muted)]" >
345- © 2025 Deep Study AI, LLC. All rights reserved.
346- </ div >
347- < div className = "flex gap-6" >
348- < Link href = "/" className = "text-sm text-[var(--muted)] hover:text-[var(--primary)]" >
349- Home
350- </ Link >
351- < Link href = "/docs" className = "text-sm text-[var(--muted)] hover:text-[var(--primary)]" >
352- Docs
353- </ Link >
354- < Link href = "/plugins" className = "text-sm text-[var(--muted)] hover:text-[var(--primary)]" >
355- Plugins
356- </ Link >
357- </ div >
358- </ div >
359- </ div >
360- </ footer >
343+ < Footer />
361344 </ div >
362345 ) ;
363346}
0 commit comments