MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / peek

Method peek

crates/chat-cli/src/agent/rts/mod.rs:594–605  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

592 }
593
594 async fn peek(&mut self) -> Result<Option<&ChatResponseStream>, RecvError> {
595 if self.peek.is_some() {
596 return Ok(self.peek.as_ref());
597 }
598 match self.next().await? {
599 Some(v) => {
600 self.peek = Some(v);
601 Ok(self.peek.as_ref())
602 },
603 None => Ok(None),
604 }
605 }
606
607 async fn next(&mut self) -> Result<Option<ChatResponseStream>, RecvError> {
608 if let Some(ev) = self.peek.take() {

Callers 15

parse_error_bodyFunction · 0.45
de_citation_targetFunction · 0.45
de_intent_data_typeFunction · 0.45
de_resourcesFunction · 0.45
de_step_component_listFunction · 0.45
de_referencesFunction · 0.45
de_task_action_listFunction · 0.45
de_task_component_listFunction · 0.45

Calls 2

as_refMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected