refactor: hide remaining subagent helpers

This commit is contained in:
Tianyi Cui
2026-07-14 02:45:34 +08:00
parent f85b831bd2
commit 65521b589f
7 changed files with 25 additions and 31 deletions

View File

@@ -161,13 +161,13 @@ function stopReasonError(result: SubagentResult): string | undefined {
* A fresh child needs a standalone prompt; a forked child already sees the
* conversation's completed turns — telling the model to restate everything
* (or, worse, that the child "does not see this conversation") would be false
* for a fork. Exported for tests.
* for a fork.
* @param inheritsConversation - whether the child's conversation is seeded
* with the parent's completed turns; this says nothing about tool, service,
* scope, or authority inheritance.
* @returns the tool `description` and the `prompt` parameter description.
*/
export function providerWording(inheritsConversation: boolean): { description: string; promptDescription: string } {
function providerWording(inheritsConversation: boolean): { description: string; promptDescription: string } {
if (inheritsConversation) {
return {
description: