Skip to content

Commit

Permalink
Improve HTML views for a few Langfun components.
Browse files Browse the repository at this point in the history
1) `lf.agentic.ActionInvocation`:
   - Rename `result_metadata` to `metadata` as it's no longer associated with result.
   - Use tab control for rendering action/result/metadata/execution
   - Displaying time badge and usage in "execution" tab header.
   - Auto-select "metadata" or "result" tab when an action is done.
2) `lf.QueryInvocation`:
   - Instrument `start_time` and `end_time`.
   - Add time badge to HTML summary.
   - Select `output` as the default tab.
3) `lf.Template`:
   - Use tabs (template_str, variables) for rendering the HTML view.

PiperOrigin-RevId: 704987034
  • Loading branch information
daiyip authored and langfun authors committed Dec 12, 2024
1 parent 2f069a0 commit ca30efd
Show file tree
Hide file tree
Showing 6 changed files with 249 additions and 277 deletions.
Loading

0 comments on commit ca30efd

Please sign in to comment.