Add FastMCP tool for web scrapping.

Add logging info for tools calling
This commit is contained in:
2026-07-29 16:28:15 +09:00
parent e5bb49a596
commit afb10aa52e
8 changed files with 606 additions and 73 deletions
+5 -5
View File
@@ -4,7 +4,7 @@ from shared_config import AgenticAIConfig, create_logger, logger
import streamlit as st
from dotenv import load_dotenv
from agent_workflows.orchestration import runAgenticWorkflow
from utilities.pdf_tools import export_to_pdf
from utilities.pdf_tools_v2 import export_to_pdf
from datetime import datetime
@@ -37,7 +37,7 @@ if "chat_history" not in st.session_state:
#llm_model = "gpt-5.5" #Output~ 30 US$ / 1M tokens
MODEL_REGISTRY={
"OpenAI":["gpt-4o-mini","gpt-5.4-nano","gpt-5-mini","gpt-4.1","gpt-4o","gpt-3.5-turbo"],
"Ollama":["llama3.1","gpt-oss:20b","gemma4:e4b","qwen2.5-coder:14b","mistral-small3.2"],
"Ollama":["gemma4:e4b","llama3.1","gpt-oss:20b","qwen2.5-coder:14b","mistral-small3.2"],
}
#7- Creating Sidebar
@@ -67,7 +67,7 @@ with st.sidebar:
config.max_tokens=st.slider(
"Max Tokens",
min_value=100,
max_value=4000,
max_value=30000,
value=config.max_tokens,
step=100
)
@@ -128,8 +128,8 @@ if st.button("Generate Response", type="primary"):
formatted_DateTime = now.strftime("%Y-%m-%d_%H%M%S")
pdfpath = f"""output/{pdf_fiename_prefix}_{formatted_DateTime}.pdf"""
export_to_pdf(
inputText=config.response,
filename=pdfpath)
llm_response=config.response,
output_filename=pdfpath)
logger.info("PDF Exported Successfully at: "+pdfpath)