MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / prompt

Method prompt

crates/opencode-session/src/prompt.rs:767–786  ·  view source on GitHub ↗
(
        &self,
        input: PromptInput,
        session: &mut Session,
        provider: Arc<dyn Provider>,
        system_prompt: Option<String>,
        tools: Vec<ToolDefinition>,
        agen

Source from the content-addressed store, hash-verified

765 }
766
767 pub async fn prompt(
768 &self,
769 input: PromptInput,
770 session: &mut Session,
771 provider: Arc<dyn Provider>,
772 system_prompt: Option<String>,
773 tools: Vec<ToolDefinition>,
774 agent_params: AgentParams,
775 ) -> anyhow::Result<()> {
776 self.prompt_with_update_hook(
777 input,
778 session,
779 provider,
780 system_prompt,
781 tools,
782 agent_params,
783 None,
784 )
785 .await
786 }
787
788 pub async fn prompt_with_update_hook(
789 &self,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected