( context: REPLHookContext, )
| 129 | * @param context - The REPLHookContext from the post-sampling hook |
| 130 | */ |
| 131 | export function createCacheSafeParams( |
| 132 | context: REPLHookContext, |
| 133 | ): CacheSafeParams { |
| 134 | return { |
| 135 | systemPrompt: context.systemPrompt, |
| 136 | userContext: context.userContext, |
| 137 | systemContext: context.systemContext, |
| 138 | toolUseContext: context.toolUseContext, |
| 139 | forkContextMessages: context.messages, |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * Creates a modified getAppState that adds allowed tools to the permission context. |
no outgoing calls
no test coverage detected