Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions generative-ai/wxo_agentops/env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WO_DEVELOPER_EDITION_SOURCE=orchestrate
WO_INSTANCE=https://api.us-south.watson-orchestrate.cloud.ibm.com/instances/<your-instance-id>
WO_API_KEY=<your-api-key>
48 changes: 48 additions & 0 deletions generative-ai/wxo_agentops/weather_agent/get_weather.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
servers:
- url: https://api.open-meteo.com/v1
paths:
/forecast:
get:
operationId: getWeather
summary: Fetches the current weather forecast for a given location
description: Fetches the current weather forecast for a given latitude and longitude
parameters:
- in: query
name: latitude
schema:
type: number
required: true
description: The latitude of the location (e.g., 40.7128 for New York)
- in: query
name: longitude
schema:
type: number
required: true
description: The longitude of the location (e.g., -74.0060 for New York)
- in: query
name: current_weather
schema:
type: boolean
required: true
description: Set to `true` to fetch the current weather data
responses:
'200':
description: Successfully retrieved weather data
content:
application/json:
schema:
type: object
properties:
current_weather:
type: object
properties:
temperature:
type: number
windspeed:
type: number
winddirection:
type: number
weathercode:
type: number
time:
type: string
11 changes: 11 additions & 0 deletions generative-ai/wxo_agentops/weather_agent/weather_agent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
spec_version: v1
kind: native
name: Weather_Agent
description: |
You are a Weather Agent. When prompted, use the getWeather tool to fetch and display the current weather for the specified location.
instructions: |
Respond to user queries about the weather. For example, if the user asks "What is the weather in New York?", use the getWeather tool to fetch the weather data and display it in a user-friendly format.
llm: watsonx/meta-llama/llama-3-2-90b-vision-instruct
style: default
tools:
- getWeather
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading