MCPcopy Create free account
hub / github.com/AI45Lab/Code / gen_image_source

Function gen_image_source

core/tests/test_persisted_schema_roundtrip.rs:203–209  ·  view source on GitHub ↗
(rng: &mut Rng)

Source from the content-addressed store, hash-verified

201}
202
203fn gen_image_source(rng: &mut Rng) -> ImageSource {
204 ImageSource {
205 source_type: "base64".to_string(),
206 media_type: "image/png".to_string(),
207 data: rng.string(),
208 }
209}
210
211fn gen_tool_result_content(rng: &mut Rng) -> ToolResultContent {
212 if rng.boolean() {

Callers 2

gen_tool_result_contentFunction · 0.85
gen_content_blockFunction · 0.85

Calls 1

stringMethod · 0.80

Tested by

no test coverage detected