OpenAI API schema validation fails for cipher_extract_and_operate_memory function
Priority: High
Description: OpenAI API call fails with schema validation error for the cipher_extract_and_operate_memory function.
Error Message: ERROR: Error in OpenAI API call (Attempt 1/3): 400 Invalid schema for function 'cipher_extract_and_operate_memory': In context=('properties', 'interaction', 'type', '1'), array schema missing items.
Root Cause: The interaction parameter in the tool definition at src/core/br ain/tools/definitions/memory/extract_and_operate_memory.ts:330 has an invalid schema. The parameter is defined as type: ['string', 'array'] but when it's an array, it's missing the items property required by OpenAI's function calling schema.
Location: src/core/brain/tools/definitions/memory/extract_and_o perate_memory.ts:330
Fix Required: Update the schema to properly define the array items: interaction: { type: ['string', 'array'], description: 'Raw user interaction(s) or conversation text(s) to extract knowledge from.', items: { type: 'string' } }
Issue already fixed at commit: https://github.com/campfirein/cipher/commit/64206de9edc1b93dda8270b515186c29b3ff5319