419419"""
420420
421421reader_output_schema = {
422- "$schema" : "https://json-schema.org/draft/2020-12/schema" ,
423- "type" : "object" ,
424- "properties" : {
425- "memory list" : {
426- "type" : "array" ,
427- "items" : {
428- "type" : "object" ,
429- "properties" : {
430- "key" : {
431- "type" : "string" ,
432- "description" : "A brief title or identifier for the memory."
433- },
434- "memory_type" : {
435- "type" : "string" ,
436- "enum" : ["LongTermMemory" , "ShortTermMemory" , "WorkingMemory" ],
437- "description" : "The type of memory, expected to be 'LongTermMemory' in this context."
438- },
439- "value" : {
440- "type" : "string" ,
441- "description" : "Detailed description of the memory, including viewpoint, time, and content."
442- },
443- "tags" : {
422+ "$schema" : "https://json-schema.org/draft/2020-12/schema" ,
423+ "type" : "object" ,
424+ "properties" : {
425+ "memory list" : {
444426 "type" : "array" ,
445427 "items" : {
446- "type" : "string"
428+ "type" : "object" ,
429+ "properties" : {
430+ "key" : {
431+ "type" : "string" ,
432+ "description" : "A brief title or identifier for the memory." ,
433+ },
434+ "memory_type" : {
435+ "type" : "string" ,
436+ "enum" : ["LongTermMemory" , "ShortTermMemory" , "WorkingMemory" ],
437+ "description" : "The type of memory, expected to be 'LongTermMemory' in this context." ,
438+ },
439+ "value" : {
440+ "type" : "string" ,
441+ "description" : "Detailed description of the memory, including viewpoint, time, and content." ,
442+ },
443+ "tags" : {
444+ "type" : "array" ,
445+ "items" : {"type" : "string" },
446+ "description" : "List of keywords or categories associated with the memory." ,
447+ },
448+ },
449+ "required" : ["key" , "memory_type" , "value" , "tags" ],
450+ "additionalProperties" : False ,
447451 },
448- "description" : "List of keywords or categories associated with the memory."
449- }
452+ "description" : "List of memory entries." ,
453+ },
454+ "summary" : {
455+ "type" : "string" ,
456+ "description" : "A synthesized summary of the overall situation based on all memories." ,
450457 },
451- "required" : ["key" , "memory_type" , "value" , "tags" ],
452- "additionalProperties" : False
453- },
454- "description" : "List of memory entries."
455458 },
456- "summary" : {
457- "type" : "string" ,
458- "description" : "A synthesized summary of the overall situation based on all memories."
459- }
460- },
461- "required" : ["memory list" , "summary" ],
462- "additionalProperties" : False ,
463- "description" : "Structured output containing a list of memories and a summary."
464- }
459+ "required" : ["memory list" , "summary" ],
460+ "additionalProperties" : False ,
461+ "description" : "Structured output containing a list of memories and a summary." ,
462+ }
0 commit comments