Skip to main content

lower_mcp_tool_arguments

Function lower_mcp_tool_arguments 

Source
pub fn lower_mcp_tool_arguments(
    system_prompt: Option<&str>,
    user_prompt: &str,
    tool_schema_supports_system_role: bool,
) -> (Value, McpLoweringReceipt)
Expand description

Lower system prompt and user objective into MCP tool call arguments. Accurately flags role degradation when flattening into a single string.