|
1 | 1 | # my_aws_tools |
2 | 2 |
|
3 | 3 | **Author:** r3-yamauchi |
4 | | -**Version:** 1.0.8 |
| 4 | +**Version:** 1.0.9 |
5 | 5 | **Type:** tool |
6 | 6 |
|
7 | 7 | 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: |
46 | 46 | - CloudWatch Logs Get Events |
47 | 47 | - CloudWatch Logs Insight |
48 | 48 | - Agentcore Code Interpreter |
| 49 | +- Agentcore Code Interpreter Files |
49 | 50 | - Agentcore Memory |
50 | 51 | - 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 |
51 | 62 |
|
52 | 63 | The source code of this plugin is available in the [GitHub repository](https://github.com/r3-yamauchi/dify-my-aws-tools-plugin). |
53 | 64 |
|
@@ -340,7 +351,263 @@ yaml_content: | |
340 | 351 | } |
341 | 352 | ``` |
342 | 353 |
|
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 | +``` |
344 | 611 |
|
345 | 612 | - **Agentcore Code Interpreter** – Creates/uses an interpreter session to run shell commands or code. |
346 | 613 |
|
|
0 commit comments