Tools¶
LLM tool factories that expose TAC Memory and Knowledge to AWS agent runtimes.
tac_aws.tools ¶
Twilio Agent Connect AWS Tools - Tool implementations for AWS agent runtimes.
create_memory_tool ¶
create_memory_tool(memory_client: MemoryClient) -> Any
Create a Strands tool for retrieving Twilio Memory data.
This tool enables Strands agents to retrieve conversation memories, including observations, summaries, and session history from Twilio Memory Service.
Uses the Strands @tool decorator pattern for automatic metadata extraction and proper tool registration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
memory_client
|
MemoryClient
|
Configured TAC MemoryClient instance |
required |
Returns:
| Type | Description |
|---|---|
Any
|
DecoratedFunctionTool configured for memory retrieval |
Example
from tac import TAC, TACConfig
from tac_aws.tools.strands import create_memory_tool
tac = TAC(config=TACConfig.from_env())
memory_tool = create_memory_tool(tac.memora_client)
# Add to Strands agent
agent = Agent(
model="amazon.nova-pro-v1:0",
system_prompt="You are helpful.",
tools=[memory_tool],
)