Skip to content

Commit eb2aadc

Browse files
committed
Further logging improvements
Signed-off-by: Ed Snible <snible@us.ibm.com>
1 parent f160a6f commit eb2aadc

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

a2a/a2a_currency_converter/app/agent.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""Currency conversion logic for A2A example"""
2+
3+
import os
4+
15
from collections.abc import AsyncIterable
26
from typing import Any, Literal
37

@@ -10,7 +14,6 @@
1014
from langgraph.prebuilt import create_react_agent
1115
from pydantic import BaseModel
1216
from pydantic_settings import BaseSettings
13-
import os
1417
from langchain_openai import ChatOpenAI
1518

1619

a2a/a2a_currency_converter/app/agent_executor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ async def execute(
9292

9393
except InternalServerError as e:
9494
msg=f"""CurrencyAgentExecutor reports an InternalServerError error.\n
95-
This can happen if the LLM_API_BASE environment variable does not point to an OpenAI server.\n
95+
This can happen if the agent's LLM_API_BASE environment variable does not point to an OpenAI server.\n
9696
LLM_API_BASE is {os.getenv("LLM_API_BASE", "undefined")}\n
97-
{e}"""
97+
Error: {e}"""
9898
logger.error(msg=msg)
9999
updater.update_status(
100100
TaskState.input_required,

0 commit comments

Comments
 (0)