File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ cargo run --bin cratedocs test --tool lookup_item --crate-name tokio --item-path
5555# Look up documentation for a specific version
5656cargo run --bin cratedocs test --tool lookup_item --crate-name serde --item-path Serialize --version 1.0.147
5757
58+ # Look up a trait in a crate (e.g., the Serialize trait in serde) & a specific version
59+ cargo run --bin cratedocs test --tool lookup_item --crate-name serde --item-path serde::Serialize --version 1.0.160
60+
5861# Search for crates
5962cargo run --bin cratedocs test --tool search_crates --query logger --limit 5
6063
@@ -64,8 +67,9 @@ cargo run --bin cratedocs test --tool lookup_crate --crate-name tokio --format t
6467
6568# Save output to a file
6669cargo run --bin cratedocs test --tool lookup_crate --crate-name tokio --output tokio-docs.md
67- # Summarize output by stripping LICENSE and VERSION sections
68- cargo run --bin cratedocs test --tool lookup_crate --crate-name tokio --tldr
70+
71+ # Summarize output by stripping LICENSE and VERSION sections, limits to xxxxx tokens (uses huggingface tokenizer)
72+ cargo run --bin cratedocs test --tool lookup_crate --crate-name tokio --tldr --max_tokens 48000
6973```
7074
7175By default, the HTTP server will listen on ` http://127.0.0.1:8080/sse ` .
You can’t perform that action at this time.
0 commit comments