AdvancedMemoryStreamRequest
AdvancedMemoryStreamRequest documentation for Go SDK
Request parameters for advanced streaming memory retrieval with custom post-processor configuration.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Message | string | The search query message | |
| SpaceIDs | []string | List of space UUIDs to search | |
| RequestedSize | Pointer to int32 | Maximum number of memories to retrieve | [optional] |
| FetchMemory | Pointer to bool | Whether to include memory definitions in stream | [optional] |
| FetchMemoryContent | Pointer to bool | Whether to include original content bytes | [optional] |
| Format | StreamingFormat | Streaming format: FormatNDJSON or FormatSSE | |
| PostProcessorName | string | Fully qualified name of the post-processor factory | |
| PostProcessorConfig | map[string]interface | Configuration map for the post-processor |
Usage
request := &goodmem_client.AdvancedMemoryStreamRequest{
Message: "your search query",
SpaceIDs: []string{"space-uuid"},
Format: goodmem_client.FormatNDJSON,
PostProcessorName: "com.goodmem.retrieval.postprocess.ChatPostProcessorFactory",
PostProcessorConfig: map[string]interface{}{
"llm_id": "550e8400-e29b-41d4-a716-446655440001",
"reranker_id": "550e8400-e29b-41d4-a716-446655440000",
"relevance_threshold": 0.5,
"llm_temp": 0.3,
"max_results": 10,
"chronological_resort": true,
},
}
stream, err := streamingClient.RetrieveMemoryStreamAdvanced(ctx, request)
if err != nil {
log.Fatal(err)
}
for event := range stream {
// process events...
}For full streaming documentation, see StreamingClient.
See Also
- MemoryStreamRequest - Simple streaming request
- MemoryStreamResponse - Response events
- StreamingClient - Full streaming documentation