wooden-umbrella-84098
09/18/2025, 5:13 PMimport os
from openhands.sdk import (
LLM,
Agent,
Conversation,
)
def say_hello():
print("hello")
def hello_tool = Tool(
name="say_hello",
description="Says hello to the user"
executor=say_hello,
)
llm = LLM(
model="anthropic/claude-sonnet-4-20250514",
api_key=os.getenv("ANTHROPIC_API_KEY"),
)
agent = Agent(llm=llm, tools=[hello_tool])
conversation.send_text("say hello")
conversation.run()quiet-night-61895
09/18/2025, 5:19 PMcalm-artist-7206
09/18/2025, 6:30 PMSecretStr is not necessarycalm-artist-7206
09/18/2025, 6:30 PMwooden-umbrella-84098
09/18/2025, 6:31 PMcalm-artist-7206
09/18/2025, 6:31 PM