INNER CODE UNIT · Python

get_weather_system_prompt

existence-master/Sentient · src/server/mcp_hub/accuweather/main.py:30

def get_weather_system_prompt() -> str:
    return prompts.weather_agent_system_prompt

# --- Tool Definitions ---

@mcp.tool
async def getCurrentWeather(ctx: Context, location: str) -> Dict[str, Any]:
    """
    Fetches the current weather conditions for a given location, including temperature, 'real feel' temperature, humidity, wind speed, and UV index.
    """
    logger.info(f"Executing tool: getCurrentWeather with location='{location}'")
    try:
        api_key = auth.get_accuweather_api_key()
        location_details = await utils.get_location_details(location, api_key)
        conditions = await utils.fetch_current_conditions(location_details["key"], api_key)
        
        return {
            "status": "success",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…