| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 个月前 | ||
| 30 天前 | ||
| 4 个月前 | ||
| 4 个月前 | ||
| 4 个月前 | ||
| 3 个月前 | ||
| 4 个月前 | ||
| 4 个月前 | ||
| 2 个月前 | ||
| 4 个月前 | ||
| 4 个月前 | ||
| 4 个月前 | ||
| 4 个月前 |
@opentiny/genui-sdk-angular
An Angular component library for enhanced LLM display and interaction. Stream AI-generated structured output into OpenTiny interactive UI components with bidirectional conversation support.
- Streaming Rendering: Content renders progressively as the model generates—no long waits for full responses.
- Structured Output: LLM output conforms to JSON Schema, enabling reliable parsing and rendering.
- Interaction: User actions (form submit, button click) feed back into the conversation context for seamless multi-turn flows.
Usage
// app.component.ts
import { Component } from '@angular/core';
import { GenuiRenderer } from '@opentiny/genui-sdk-angular';
@Component({
standalone: true,
imports: [GenuiRenderer],
template: `
<genui-renderer
[content]="schemaContent"
[state]="state"
[generating]="isGenerating"
/>
`,
})
export class AppComponent {
schemaContent = '{}';
state: Record<string, any> = {};
isGenerating = false;
}