Skip to content

Commit 6154baf

Browse files
committed
v1.0.9 AgentCore関連ツールを拡充
1 parent e34c464 commit 6154baf

46 files changed

Lines changed: 16662 additions & 41 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 269 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# my_aws_tools
22

33
**Author:** r3-yamauchi
4-
**Version:** 1.0.8
4+
**Version:** 1.0.9
55
**Type:** tool
66

77
English | [Japanese](https://github.com/r3-yamauchi/dify-my-aws-tools-plugin/blob/main/readme/README_ja_JP.md)
@@ -46,8 +46,19 @@ Included tools:
4646
- CloudWatch Logs Get Events
4747
- CloudWatch Logs Insight
4848
- Agentcore Code Interpreter
49+
- Agentcore Code Interpreter Files
4950
- Agentcore Memory
5051
- Agentcore Memory Search
52+
- Agentcore Memory Search Advanced
53+
- Agentcore Memory Backup
54+
- Agentcore Memory Merge/Split
55+
- Agentcore Memory Manager
56+
- Agentcore Memory Query
57+
- Agentcore Memory Statistics
58+
- Agentcore Memory Template
59+
- Agentcore Event Manager
60+
- Agentcore Runtime
61+
- Agentcore Observability
5162

5263
The source code of this plugin is available in the [GitHub repository](https://github.com/r3-yamauchi/dify-my-aws-tools-plugin).
5364

@@ -340,7 +351,263 @@ yaml_content: |
340351
}
341352
```
342353

343-
### AgentCore Integrations
354+
### Amazon Bedrock AgentCore Integrations
355+
356+
- **AgentCore Runtime**: Launches, invokes, and checks the status of Runtime agents. Supports both synchronous and asynchronous invocation modes, enabling session management and retrieval of execution results.
357+
358+
```json
359+
{
360+
"operation": "invoke",
361+
"agent_id": "agent-abc123",
362+
"input_text": "Please execute data analysis",
363+
"session_id": "session-001",
364+
"enable_trace": true,
365+
"end_session": false
366+
}
367+
```
368+
369+
- **AgentCore Memory Manager**: Manages the lifecycle of Memory resources. Enables listing, retrieving detailed information, creating, and deleting Memory resources, with filtering and sorting capabilities.
370+
371+
```json
372+
{
373+
"operation": "list",
374+
"max_results": 50,
375+
"filter_name_prefix": "prod-",
376+
"sort_by": "createdAt",
377+
"sort_order": "desc"
378+
}
379+
```
380+
381+
```json
382+
{
383+
"operation": "create",
384+
"memory_name": "customer-support-memory",
385+
"description": "Memory for customer support",
386+
"tags": {
387+
"Environment": "production",
388+
"Team": "support"
389+
}
390+
}
391+
```
392+
393+
- **AgentCore Event Manager**: Provides detailed management of Memory events. Enables listing, retrieving details, deleting (individual/batch), and exporting (JSON, CSV) events, with support for filtering by time range, Actor ID, and Session ID.
394+
395+
```json
396+
{
397+
"operation": "list",
398+
"memory_id": "mem-abc123",
399+
"start_time": "2025-01-01T00:00:00Z",
400+
"end_time": "2025-01-31T23:59:59Z",
401+
"filter_actor_id": "user001",
402+
"max_results": 100
403+
}
404+
```
405+
406+
```json
407+
{
408+
"operation": "export",
409+
"memory_id": "mem-abc123",
410+
"format": "csv",
411+
"output_location": "s3://my-bucket/exports/events.csv",
412+
"start_time": "1w"
413+
}
414+
```
415+
416+
- **AgentCore Memory Statistics**: Analyzes Memory usage. Retrieves statistical information for Memory resources, event count aggregation by Actor, event count aggregation by Session, and time-series event count trends.
417+
418+
```json
419+
{
420+
"operation": "memory_stats",
421+
"memory_id": "mem-abc123"
422+
}
423+
```
424+
425+
```json
426+
{
427+
"operation": "actor_stats",
428+
"memory_id": "mem-abc123",
429+
"start_time": "7d",
430+
"top_n": 10
431+
}
432+
```
433+
434+
```json
435+
{
436+
"operation": "timeline",
437+
"memory_id": "mem-abc123",
438+
"start_time": "2025-01-01T00:00:00Z",
439+
"end_time": "2025-01-31T23:59:59Z",
440+
"interval": "1h"
441+
}
442+
```
443+
444+
- **AgentCore Observability**: Provides integrated access to AgentCore Observability data. Enables session/trace/span metrics, log retrieval from CloudWatch Logs, X-Ray trace data retrieval, performance analysis, and bottleneck identification.
445+
446+
```json
447+
{
448+
"operation": "get_session_metrics",
449+
"session_id": "session-abc123",
450+
"metric_types": "duration,token_count,error_rate"
451+
}
452+
```
453+
454+
```json
455+
{
456+
"operation": "get_logs",
457+
"log_group_name": "/aws/bedrock/agentcore",
458+
"start_time": "1h",
459+
"filter_pattern": "ERROR",
460+
"max_events": 100
461+
}
462+
```
463+
464+
```json
465+
{
466+
"operation": "analyze_performance",
467+
"trace_id": "trace-abc123",
468+
"include_bottlenecks": true
469+
}
470+
```
471+
472+
- **AgentCore Memory Backup**: Provides complete backup and restore functionality for Memory resources. Can be used for disaster recovery and data migration between environments. Backups are stored in S3 with optional compression and encryption.
473+
474+
```json
475+
{
476+
"operation": "backup",
477+
"memory_id": "mem-abc123",
478+
"backup_location": "s3://my-backup-bucket/backups/",
479+
"include_events": true,
480+
"include_strategies": true,
481+
"compression": "gzip",
482+
"encryption": true
483+
}
484+
```
485+
486+
```json
487+
{
488+
"operation": "restore",
489+
"backup_location": "s3://my-backup-bucket/backups/mem-abc123-20250115.json.gz",
490+
"target_memory_id": "mem-new123",
491+
"conflict_resolution": "skip"
492+
}
493+
```
494+
495+
- **AgentCore Memory Merge/Split**: Provides merge, split, and event copy functionality for Memory resources. Enables consolidating multiple Memory resources, splitting a single Memory by Actor or Session, and copying only events that match specific conditions.
496+
497+
```json
498+
{
499+
"operation": "merge",
500+
"source_memory_ids": "mem-abc123,mem-def456,mem-ghi789",
501+
"target_memory_id": "mem-merged",
502+
"merge_conflict_resolution": "keep_latest",
503+
"deduplicate": true,
504+
"merge_strategies": true
505+
}
506+
```
507+
508+
```json
509+
{
510+
"operation": "split",
511+
"source_memory_id": "mem-abc123",
512+
"split_by": "actor_id",
513+
"target_memory_prefix": "memory-actor-",
514+
"create_index": true
515+
}
516+
```
517+
518+
- **AgentCore Memory Query**: Searches Memory by constructing complex search conditions. Enables combining multiple conditions (AND/OR/NOT), regular expression search, similarity search (vector search), and saving and reusing queries.
519+
520+
```json
521+
{
522+
"operation": "search",
523+
"memory_id": "mem-abc123",
524+
"query": {
525+
"and": [
526+
{"field": "actor_id", "operator": "equals", "value": "user001"},
527+
{"field": "timestamp", "operator": "greater_than", "value": "2025-01-01T00:00:00Z"}
528+
]
529+
},
530+
"max_results": 50
531+
}
532+
```
533+
534+
```json
535+
{
536+
"operation": "similarity_search",
537+
"memory_id": "mem-abc123",
538+
"query_text": "Investigate the cause of the error",
539+
"top_k": 10,
540+
"similarity_threshold": 0.7
541+
}
542+
```
543+
544+
- **AgentCore Memory Template**: Provides templating for Memory configurations. Enables creating Memory configuration templates, creating Memory from templates, sharing and importing templates, and version control.
545+
546+
```json
547+
{
548+
"operation": "create_template",
549+
"template_name": "customer-support-template",
550+
"description": "Standard template for customer support",
551+
"memory_config": {
552+
"retention_days": 90,
553+
"max_events": 10000,
554+
"enable_search": true
555+
},
556+
"tags": {
557+
"Type": "support",
558+
"Version": "1.0"
559+
}
560+
}
561+
```
562+
563+
```json
564+
{
565+
"operation": "create_from_template",
566+
"template_id": "template-abc123",
567+
"memory_name": "support-team-a-memory",
568+
"override_config": {
569+
"retention_days": 180
570+
}
571+
}
572+
```
573+
574+
- **AgentCore Code Interpreter Files**: Manages Code Interpreter files. Enables file upload (local/Base64), retrieving files from execution results, listing files (with filtering and sorting), and deleting files (single/batch), with file size limit (100MB) and security checks implemented.
575+
576+
```json
577+
{
578+
"operation": "upload",
579+
"session_id": "session-abc123",
580+
"file_path": "/path/to/data.csv",
581+
"file_name": "data.csv",
582+
"description": "Data for analysis"
583+
}
584+
```
585+
586+
```json
587+
{
588+
"operation": "list",
589+
"session_id": "session-abc123",
590+
"filter_extension": ".csv",
591+
"sort_by": "upload_time",
592+
"sort_order": "desc"
593+
}
594+
```
595+
596+
- **AgentCore Memory Search Advanced**: Extends Memory Search functionality. Enables adding filter conditions (time range, Actor ID, Session ID, Namespace), specifying sort order (relevance, timestamp), pagination (max 100 items/page), highlight feature (customizable), and context extraction.
597+
598+
```json
599+
{
600+
"memory_id": "mem-abc123",
601+
"query": "Error handling",
602+
"filter_actor_id": "user001",
603+
"filter_start_time": "2025-01-01T00:00:00Z",
604+
"filter_end_time": "2025-01-31T23:59:59Z",
605+
"sort_by": "relevance",
606+
"page_size": 50,
607+
"enable_highlight": true,
608+
"context_size": 100
609+
}
610+
```
344611

345612
- **Agentcore Code Interpreter** – Creates/uses an interpreter session to run shell commands or code.
346613

manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 1.0.8
1+
version: 1.0.9
22
type: plugin
33
author: r3-yamauchi
44
name: my_aws_tools

provider/my_aws_tools.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,25 @@ tools:
6464
- tools/nova_canvas.yaml
6565
- tools/nova_reel.yaml
6666
- tools/extract_frame.yaml
67-
- tools/agentcore/agentcore_memory.yaml
68-
- tools/agentcore/agentcore_memory_search.yaml
69-
- tools/agentcore/agentcore_code_interpreter.yaml
7067
- tools/cf_create_invalidation.yaml
7168
- tools/cwlogs/cwlogs_describe_streams.yaml
7269
- tools/cwlogs/cwlogs_filter_events.yaml
7370
- tools/cwlogs/cwlogs_get_events.yaml
7471
- tools/cwlogs/cwlogs_insight.yaml
72+
- tools/agentcore/agentcore_runtime.yaml
73+
- tools/agentcore/agentcore_memory.yaml
74+
- tools/agentcore/agentcore_memory_manager.yaml
75+
- tools/agentcore/agentcore_memory_search.yaml
76+
- tools/agentcore/agentcore_memory_search_advanced.yaml
77+
- tools/agentcore/agentcore_memory_query.yaml
78+
- tools/agentcore/agentcore_memory_statistics.yaml
79+
- tools/agentcore/agentcore_memory_backup.yaml
80+
- tools/agentcore/agentcore_memory_merge_split.yaml
81+
- tools/agentcore/agentcore_memory_template.yaml
82+
- tools/agentcore/agentcore_event_manager.yaml
83+
- tools/agentcore/agentcore_observability.yaml
84+
- tools/agentcore/agentcore_code_interpreter.yaml
85+
- tools/agentcore/agentcore_code_interpreter_files.yaml
7586
extra:
7687
python:
7788
source: provider/my_aws_tools.py

0 commit comments

Comments
 (0)