Skip to content

Commit 000ae25

Browse files
committed
style: fix prettier formatting in docs and source files
1 parent 7dc39dc commit 000ae25

4 files changed

Lines changed: 19 additions & 8 deletions

File tree

docs/commands.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,12 @@ agentcore add memory \
225225
--expiry 30
226226
```
227227

228-
| Flag | Description |
229-
| ---------------------- | ------------------------------------------------------------------------------------ |
230-
| `--name <name>` | Memory name |
228+
| Flag | Description |
229+
| ---------------------- | ------------------------------------------------------------------------------------- |
230+
| `--name <name>` | Memory name |
231231
| `--strategies <types>` | Comma-separated: `SEMANTIC`, `SUMMARIZATION`, `USER_PREFERENCE`, `EPISODIC`, `CUSTOM` |
232-
| `--expiry <days>` | Event expiry duration in days (default: 30, min: 7, max: 365) |
233-
| `--json` | JSON output |
232+
| `--expiry <days>` | Event expiry duration in days (default: 30, min: 7, max: 365) |
233+
| `--json` | JSON output |
234234

235235
### add gateway
236236

docs/memory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ async def invoke(payload, context):
156156
| `SEMANTIC` | Vector-based similarity search for relevant context |
157157
| `SUMMARIZATION` | Compressed conversation history |
158158
| `USER_PREFERENCE` | Store user-specific preferences and settings |
159-
| `EPISODIC` | Capture and reflect on meaningful interaction episodes |
159+
| `EPISODIC` | Capture and reflect on meaningful interaction episodes |
160160
| `CUSTOM` | Self-managed strategy with user-controlled extraction logic |
161161

162162
You can combine multiple strategies:

src/cli/primitives/MemoryPrimitive.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import { findConfigRoot } from '../../lib';
22
import type { Memory, MemoryStrategy, MemoryStrategyType } from '../../schema';
3-
import { DEFAULT_EPISODIC_REFLECTION_NAMESPACES, DEFAULT_STRATEGY_NAMESPACES, MemorySchema, MemoryStrategyTypeSchema } from '../../schema';
3+
import {
4+
DEFAULT_EPISODIC_REFLECTION_NAMESPACES,
5+
DEFAULT_STRATEGY_NAMESPACES,
6+
MemorySchema,
7+
MemoryStrategyTypeSchema,
8+
} from '../../schema';
49
import { validateAddMemoryOptions } from '../commands/add/validate';
510
import { getErrorMessage } from '../errors';
611
import type { RemovalPreview, RemovalResult, SchemaChange } from '../operations/remove/types';

src/schema/schemas/primitives/__tests__/memory.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ describe('MemoryStrategyTypeSchema', () => {
3737

3838
describe('schema options', () => {
3939
it('contains five valid strategies including EPISODIC and CUSTOM', () => {
40-
expect(MemoryStrategyTypeSchema.options).toEqual(['SEMANTIC', 'SUMMARIZATION', 'USER_PREFERENCE', 'EPISODIC', 'CUSTOM']);
40+
expect(MemoryStrategyTypeSchema.options).toEqual([
41+
'SEMANTIC',
42+
'SUMMARIZATION',
43+
'USER_PREFERENCE',
44+
'EPISODIC',
45+
'CUSTOM',
46+
]);
4147
expect(MemoryStrategyTypeSchema.options).toContain('CUSTOM');
4248
expect(MemoryStrategyTypeSchema.options).toContain('EPISODIC');
4349
});

0 commit comments

Comments
 (0)