web_fetch was returning raw HTML, which is verbose and hard for the agent to consume. Add html2md dependency and convert HTML to Markdown before truncation. Much cleaner output for normal pages; no downsides. Co-Authored-By: spqrz <spqrz386@gmail.com> Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
commit
4245b8bdb3
2 changed files with 5 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ edition.workspace = true
|
|||
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
html2md = "0.2"
|
||||
crossterm = { version = "0.29", features = ["event-stream", "bracketed-paste", "osc52"] }
|
||||
clap = { version = "4", features = ["derive"] }
|
||||
figment = { version = "0.10", features = ["env"] }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue