Skip to content
1 viewer

rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off

crates/cre8-app-collab/src/llm_agent.rs

cre8-app-collab · module llm_agent · src · 912 lines (720 code, 119 comment) · sha 04d669fbe27b0fe2

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.

functionkindlinescyclomaticcallerscalleesweightcrystal
parse_critic_responsesrc/llm_agent.rs:345fn5011914.1
parse_verdictsrc/llm_agent.rs:396fn104103.9
LlmAgent::criticsrc/llm_agent.rs:84method2011503.5
LlmAgent::writersrc/llm_agent.rs:65method1511903
convosrc/llm_agent.rs:457fn3511101.8
LlmAgent::effective_system_promptsrc/llm_agent.rs:171method203111.2
LlmAgent::with_max_tokenssrc/llm_agent.rs:131method41901.2
LlmAgent::with_temperaturesrc/llm_agent.rs:136method41801.1
LlmAgent::complete_with_tool_loopsrc/llm_agent.rs:237method91211
LlmAgent::with_toolssrc/llm_agent.rs:116method41400.9
CannedProvider::last_seensrc/llm_agent.rs:430method31400.9
LlmAgent::build_writer_requestsrc/llm_agent.rs:141method254110.8
LlmAgent::step_writersrc/llm_agent.rs:205method51120.7
LlmAgent::step_criticsrc/llm_agent.rs:211method181130.7
LlmAgent::build_critic_requestsrc/llm_agent.rs:192method121100.7
AsyncLlmAgent::newsrc/llm_agent.rs:297method31200.7
make_islandsrc/llm_agent.rs:653fn41200.7
LlmAgent::with_max_tool_iterationssrc/llm_agent.rs:121method41200.6
LlmAgent::with_account_idsrc/llm_agent.rs:109method41000.5
LlmAgent::with_modelsrc/llm_agent.rs:126method41000.5
LlmAgent::idsrc/llm_agent.rs:249trait impl31000.5
LlmAgent::rolesrc/llm_agent.rs:252trait impl31000.5
LlmAgent::account_idsrc/llm_agent.rs:255trait impl31000.5
LlmAgent::stepsrc/llm_agent.rs:258trait impl122020.5
AsyncLlmAgent::idsrc/llm_agent.rs:301method31000.5
AsyncLlmAgent::rolesrc/llm_agent.rs:305method31000.5
AsyncLlmAgent::stepsrc/llm_agent.rs:311method193000.5
CannedProvider::newsrc/llm_agent.rs:423method61000.5
CannedProvider::idsrc/llm_agent.rs:436trait impl31000.5
CannedProvider::default_modelsrc/llm_agent.rs:439trait impl31000.5
CannedProvider::completesrc/llm_agent.rs:442trait impl131000.5
writer_first_turn_injects_begin_promptsrc/llm_agent.rs:496fn153040.5
writer_maps_authorship_to_assistant_vs_usersrc/llm_agent.rs:513fn151040.5
writer_passes_system_promptsrc/llm_agent.rs:530fn61040.5
critic_targets_most_recent_other_author_messagesrc/llm_agent.rs:540fn192030.5
critic_errors_when_nothing_to_critiquesrc/llm_agent.rs:561fn61030.5
critic_appends_response_format_convention_to_system_promptsrc/llm_agent.rs:569fn111040.5
parse_canonical_responsesrc/llm_agent.rs:584fn61010.5
parse_is_case_insensitive_and_tolerantsrc/llm_agent.rs:592fn61010.5
parse_handles_multi_line_rationalesrc/llm_agent.rs:600fn51010.5
parse_missing_score_yields_nonesrc/llm_agent.rs:607fn41010.5
parse_score_clamps_to_rangesrc/llm_agent.rs:613fn61010.5
parse_synonyms_for_verdictsrc/llm_agent.rs:621fn132010.5
parse_unknown_verdict_defaults_to_revisesrc/llm_agent.rs:636fn41010.5
parse_takes_post_verdict_text_when_no_rationale_markersrc/llm_agent.rs:642fn51010.5
async_agent_step_resolves_via_spawn_blockingsrc/llm_agent.rs:659fn132050.5
async_agents_can_run_in_parallelsrc/llm_agent.rs:674fn347050.5
ToolUseTwoStageProvider::idsrc/llm_agent.rs:725trait impl31000.5
ToolUseTwoStageProvider::default_modelsrc/llm_agent.rs:728trait impl31000.5
ToolUseTwoStageProvider::completesrc/llm_agent.rs:731trait impl292000.5
EchoTool::namesrc/llm_agent.rs:764trait impl31000.5
EchoTool::specsrc/llm_agent.rs:767trait impl111000.5
EchoTool::executesrc/llm_agent.rs:778trait impl31000.5
tool_use_round_trip_dispatches_and_feeds_result_backsrc/llm_agent.rs:784fn342030.5
tool_use_cap_prevents_runaway_loopssrc/llm_agent.rs:820fn402040.5
AlwaysToolCalls::idsrc/llm_agent.rs:825trait impl31000.5
AlwaysToolCalls::default_modelsrc/llm_agent.rs:828trait impl31000.5
AlwaysToolCalls::completesrc/llm_agent.rs:831trait impl141000.5
tool_use_unknown_tool_surfaces_as_error_resultsrc/llm_agent.rs:862fn502030.5
AsksUnknownTool::idsrc/llm_agent.rs:865trait impl31000.5
AsksUnknownTool::default_modelsrc/llm_agent.rs:868trait impl31000.5
AsksUnknownTool::completesrc/llm_agent.rs:871trait impl272000.5

Source not readable from this process.