(param: {
type: string
name?: string
})
| 34 | export type AdvisorBlock = AdvisorServerToolUseBlock | AdvisorToolResultBlock |
| 35 | |
| 36 | export function isAdvisorBlock(param: { |
| 37 | type: string |
| 38 | name?: string |
| 39 | }): param is AdvisorBlock { |
| 40 | return ( |
| 41 | param.type === 'advisor_tool_result' || |
| 42 | (param.type === 'server_tool_use' && param.name === 'advisor') |
| 43 | ) |
| 44 | } |
| 45 | |
| 46 | type AdvisorConfig = { |
| 47 | enabled?: boolean |
no outgoing calls
no test coverage detected