Skip to content

Building AI agents, atomically

completed linting

Koichi KAWAMURAd25c1eb3f745
diff --git a/atomic-examples/mcp-agent/example-client/example_client/main_sse.py b/atomic-examples/mcp-agent/example-client/example_client/main_sse.py
index a7f09c3..ac0a710 100644
--- a/atomic-examples/mcp-agent/example-client/example_client/main_sse.py
+++ b/atomic-examples/mcp-agent/example-client/example_client/main_sse.py
@@ -305,14 +305,13 @@ def main():
if any(
key in action_instance for key in ["response_text", "text", "response", "message", "content"]
):
- response_content = (
- action_instance.get("response_text")
- or action_instance.get("text")
- or action_instance.get("response")
- or action_instance.get("message")
- or action_instance.get("content")
- or "No message content found"
- )
+ response_content = \
+ action_instance.get("response_text") or \
+ action_instance.get("text") or \
+ action_instance.get("response") or \
+ action_instance.get("message") or \
+ action_instance.get("content") or \
+ "No message content found"
console.print("[yellow]Appears to be a final response. Converting directly.[/yellow]")
action_instance = FinalResponseSchema(response_text=response_content)
continue
diff --git a/atomic-examples/quickstart/quickstart/3_1_basic_custom_chatbot_with_custom_schema_streaming.py b/atomic-examples/quickstart/quickstart/3_1_basic_custom_chatbot_with_custom_schema_streaming.py
index 162cbfb..303f851 100644
--- a/atomic-examples/quickstart/quickstart/3_1_basic_custom_chatbot_with_custom_schema_streaming.py
+++ b/atomic-examples/quickstart/quickstart/3_1_basic_custom_chatbot_with_custom_schema_streaming.py
@@ -63,7 +63,9 @@ system_prompt_generator = SystemPromptGenerator(
"Analyze the user's input to understand the context and intent.",
"Formulate a relevant and informative response based on the assistant's knowledge.",
"Generate 3 suggested follow-up questions for the user to explore the topic further.",
- "When you get a simple number from the user, choose the corresponding question from the last list of suggested questions and answer it. Note that the first question is 1, the second is 2, and so on.",
+ "When you get a simple number from the user,"
+ "choose the corresponding question from the last list of suggested questions and answer it."
+ "Note that the first question is 1, the second is 2, and so on."
],
output_instructions=[
"Provide clear, concise, and accurate information in response to user queries.",
diff --git a/atomic-examples/youtube-summarizer/youtube_summarizer/tools/youtube_transcript_scraper.py b/atomic-examples/youtube-summarizer/youtube_summarizer/tools/youtube_transcript_scraper.py
index 2d9cd60..46f0332 100644
--- a/atomic-examples/youtube-summarizer/youtube_summarizer/tools/youtube_transcript_scraper.py
+++ b/atomic-examples/youtube-summarizer/youtube_summarizer/tools/youtube_transcript_scraper.py
@@ -1,5 +1,5 @@
import os
-from typing import List, Optional, Any
+from typing import List, Optional
from pydantic import Field, BaseModel
from datetime import datetime