-
Notifications
You must be signed in to change notification settings - Fork 771
docs: fix import paths for Workflow and WorkflowResult #525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -155,7 +155,7 @@ Integrate observability into your MCP Agent workflows: | |||||
```python | ||||||
# workflows/observable_workflow.py | ||||||
from mcp_agent.app import MCPApp | ||||||
from mcp_agent.workflows import Workflow, WorkflowResult | ||||||
from mcp_agent.executor.workflow import Workflow, WorkflowResult | ||||||
from mcp_agent.agents.agent import Agent | ||||||
from mcp_agent.workflows.llm.augmented_llm_openai import OpenAIAugmentedLLM | ||||||
from opentelemetry import trace, metrics | ||||||
|
@@ -1460,7 +1460,7 @@ receivers: | |||||
- name: 'critical-alerts' | ||||||
slack_configs: | ||||||
- channel: '#critical-alerts' | ||||||
title: '=¨ CRITICAL: MCP Agent Alert' | ||||||
title: '=� CRITICAL: MCP Agent Alert' | ||||||
text: | | ||||||
{{ range .Alerts }} | ||||||
*Alert:* {{ .Annotations.summary }} | ||||||
|
@@ -1492,7 +1492,7 @@ receivers: | |||||
- name: 'cost-alerts' | ||||||
slack_configs: | ||||||
- channel: '#cost-monitoring' | ||||||
title: '=° LLM Cost Alert' | ||||||
title: '=� LLM Cost Alert' | ||||||
text: | | ||||||
{{ range .Alerts }} | ||||||
{{ .Annotations.summary }} | ||||||
|
@@ -1633,7 +1633,7 @@ class AlertManager: | |||||
if handler: | ||||||
await handler(alert) | ||||||
|
||||||
print(f"=¨ ALERT: {alert.severity.value.upper()} - {alert.message}") | ||||||
print(f"=� ALERT: {alert.severity.value.upper()} - {alert.message}") | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix console print artifact The printed prefix includes a stray character ( - print(f"=� ALERT: {alert.severity.value.upper()} - {alert.message}")
+ print(f"ALERT: {alert.severity.value.upper()} - {alert.message}") 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||
|
||||||
async def resolve_alert(self, name: str): | ||||||
"""Resolve alerts by name.""" | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove stray non-ASCII/control characters in alert title
The
title
contains unexpected characters (=�
). This will render poorly in docs.📝 Committable suggestion
🤖 Prompt for AI Agents