1 viewer
rust 1,961,941 · typescript 233,850 · javascript 141,145 · python 22,871 · 6,801 files · digest 6d882eacc8db · built in 12.5 s · crystals off
crates/cre8-app-collab/src/llm_agent.rs
Items
enum LlmAgentRole struct LlmAgent impl LlmAgent impl Agent for LlmAgent struct AsyncLlmAgent impl AsyncLlmAgent struct CritiqueParse struct CannedProvider impl CannedProvider impl LlmProvider for CannedProvider struct ToolUseTwoStageProvider impl LlmProvider for ToolUseTwoStageProvider struct EchoTool impl IntelligenceTool for EchoTool struct AlwaysToolCalls impl LlmProvider for AlwaysToolCalls struct AsksUnknownTool impl LlmProvider for AsksUnknownTool
Functions
By call-graph weight (PageRank; 1.0 is the average function). 62 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| parse_critic_responsesrc/llm_agent.rs:345 | fn | 50 | 11 | 9 | 1 | 4 | |
| parse_verdictsrc/llm_agent.rs:396 | fn | 10 | 4 | 1 | 0 | 3.9 | |
| LlmAgent::criticsrc/llm_agent.rs:84 | method | 20 | 1 | 15 | 0 | 3.4 | |
| LlmAgent::writersrc/llm_agent.rs:65 | method | 15 | 1 | 19 | 0 | 3 | |
| convosrc/llm_agent.rs:457 | fn | 35 | 1 | 11 | 0 | 1.7 | |
| LlmAgent::effective_system_promptsrc/llm_agent.rs:171 | method | 20 | 3 | 1 | 1 | 1.2 | |
| LlmAgent::with_max_tokenssrc/llm_agent.rs:131 | method | 4 | 1 | 9 | 0 | 1.2 | |
| LlmAgent::with_temperaturesrc/llm_agent.rs:136 | method | 4 | 1 | 8 | 0 | 1.1 | |
| LlmAgent::complete_with_tool_loopsrc/llm_agent.rs:237 | method | 9 | 1 | 2 | 1 | 1 | |
| LlmAgent::with_toolssrc/llm_agent.rs:116 | method | 4 | 1 | 4 | 0 | 0.9 | |
| CannedProvider::last_seensrc/llm_agent.rs:430 | method | 3 | 1 | 4 | 0 | 0.9 | |
| LlmAgent::build_writer_requestsrc/llm_agent.rs:141 | method | 25 | 4 | 1 | 1 | 0.8 | |
| LlmAgent::step_writersrc/llm_agent.rs:205 | method | 5 | 1 | 1 | 2 | 0.7 | |
| LlmAgent::step_criticsrc/llm_agent.rs:211 | method | 18 | 1 | 1 | 3 | 0.7 | |
| LlmAgent::build_critic_requestsrc/llm_agent.rs:192 | method | 12 | 1 | 1 | 0 | 0.7 | |
| AsyncLlmAgent::newsrc/llm_agent.rs:297 | method | 3 | 1 | 2 | 0 | 0.7 | |
| make_islandsrc/llm_agent.rs:653 | fn | 4 | 1 | 2 | 0 | 0.7 | |
| LlmAgent::with_max_tool_iterationssrc/llm_agent.rs:121 | method | 4 | 1 | 2 | 0 | 0.6 | |
| LlmAgent::with_account_idsrc/llm_agent.rs:109 | method | 4 | 1 | 0 | 0 | 0.5 | |
| LlmAgent::with_modelsrc/llm_agent.rs:126 | method | 4 | 1 | 0 | 0 | 0.5 | |
| LlmAgent::idsrc/llm_agent.rs:249 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| LlmAgent::rolesrc/llm_agent.rs:252 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| LlmAgent::account_idsrc/llm_agent.rs:255 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| LlmAgent::stepsrc/llm_agent.rs:258 | trait impl | 12 | 2 | 0 | 2 | 0.5 | |
| AsyncLlmAgent::idsrc/llm_agent.rs:301 | method | 3 | 1 | 0 | 0 | 0.5 | |
| AsyncLlmAgent::rolesrc/llm_agent.rs:305 | method | 3 | 1 | 0 | 0 | 0.5 | |
| AsyncLlmAgent::stepsrc/llm_agent.rs:311 | method | 19 | 3 | 0 | 0 | 0.5 | |
| CannedProvider::newsrc/llm_agent.rs:423 | method | 6 | 1 | 0 | 0 | 0.5 | |
| CannedProvider::idsrc/llm_agent.rs:436 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| CannedProvider::default_modelsrc/llm_agent.rs:439 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| CannedProvider::completesrc/llm_agent.rs:442 | trait impl | 13 | 1 | 0 | 0 | 0.5 | |
| writer_first_turn_injects_begin_promptsrc/llm_agent.rs:496 | fn | 15 | 3 | 0 | 4 | 0.5 | |
| writer_maps_authorship_to_assistant_vs_usersrc/llm_agent.rs:513 | fn | 15 | 1 | 0 | 4 | 0.5 | |
| writer_passes_system_promptsrc/llm_agent.rs:530 | fn | 6 | 1 | 0 | 4 | 0.5 | |
| critic_targets_most_recent_other_author_messagesrc/llm_agent.rs:540 | fn | 19 | 2 | 0 | 3 | 0.5 | |
| critic_errors_when_nothing_to_critiquesrc/llm_agent.rs:561 | fn | 6 | 1 | 0 | 3 | 0.5 | |
| critic_appends_response_format_convention_to_system_promptsrc/llm_agent.rs:569 | fn | 11 | 1 | 0 | 4 | 0.5 | |
| parse_canonical_responsesrc/llm_agent.rs:584 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| parse_is_case_insensitive_and_tolerantsrc/llm_agent.rs:592 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| parse_handles_multi_line_rationalesrc/llm_agent.rs:600 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| parse_missing_score_yields_nonesrc/llm_agent.rs:607 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| parse_score_clamps_to_rangesrc/llm_agent.rs:613 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| parse_synonyms_for_verdictsrc/llm_agent.rs:621 | fn | 13 | 2 | 0 | 1 | 0.5 | |
| parse_unknown_verdict_defaults_to_revisesrc/llm_agent.rs:636 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| parse_takes_post_verdict_text_when_no_rationale_markersrc/llm_agent.rs:642 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| async_agent_step_resolves_via_spawn_blockingsrc/llm_agent.rs:659 | fn | 13 | 2 | 0 | 5 | 0.5 | |
| async_agents_can_run_in_parallelsrc/llm_agent.rs:674 | fn | 34 | 7 | 0 | 5 | 0.5 | |
| ToolUseTwoStageProvider::idsrc/llm_agent.rs:725 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| ToolUseTwoStageProvider::default_modelsrc/llm_agent.rs:728 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| ToolUseTwoStageProvider::completesrc/llm_agent.rs:731 | trait impl | 29 | 2 | 0 | 0 | 0.5 | |
| EchoTool::namesrc/llm_agent.rs:764 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EchoTool::specsrc/llm_agent.rs:767 | trait impl | 11 | 1 | 0 | 0 | 0.5 | |
| EchoTool::executesrc/llm_agent.rs:778 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| tool_use_round_trip_dispatches_and_feeds_result_backsrc/llm_agent.rs:784 | fn | 34 | 2 | 0 | 3 | 0.5 | |
| tool_use_cap_prevents_runaway_loopssrc/llm_agent.rs:820 | fn | 40 | 2 | 0 | 4 | 0.5 | |
| AlwaysToolCalls::idsrc/llm_agent.rs:825 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| AlwaysToolCalls::default_modelsrc/llm_agent.rs:828 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| AlwaysToolCalls::completesrc/llm_agent.rs:831 | trait impl | 14 | 1 | 0 | 0 | 0.5 | |
| tool_use_unknown_tool_surfaces_as_error_resultsrc/llm_agent.rs:862 | fn | 50 | 2 | 0 | 3 | 0.5 | |
| AsksUnknownTool::idsrc/llm_agent.rs:865 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| AsksUnknownTool::default_modelsrc/llm_agent.rs:868 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| AsksUnknownTool::completesrc/llm_agent.rs:871 | trait impl | 27 | 2 | 0 | 0 | 0.5 |
Source not readable from this process.