We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2848bd commit 7655a47Copy full SHA for 7655a47
strands-examples/strands-langfuse-demo/k8s_mcp_agent.py
@@ -8,6 +8,8 @@
8
from set_telemetry import set_telemetry
9
import uuid
10
11
+from model import model
12
+
13
def remove_html_tags(text_with_html):
14
text_with_out_html = re.sub(r"<[^>]+>", "", text_with_html)
15
return text_with_out_html
@@ -49,7 +51,7 @@ def __init__(self):
49
51
# Create an agent with these tools
50
52
self.agent = Agent(
53
callback_handler=None,
- model="us.amazon.nova-micro-v1:0",
54
+ model=model,
55
tools=tools,
56
trace_attributes={
57
"session.id": str(uuid.uuid4()),
strands-examples/strands-langfuse-demo/model.py
@@ -0,0 +1,5 @@
1
+from strands.models import BedrockModel
2
3
+model = BedrockModel(
4
+ model_id="us.amazon.nova-micro-v1:0",
5
+)
0 commit comments