import fallomfallom.init(api_key="your-fallom-api-key")from anthropic import Anthropicclient = Anthropic()fallom.trace.set_session("my-agent", "session-123")response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, system="You are a helpful assistant who speaks like a pirate.", messages=[{"role": "user", "content": "Tell me about the weather."}])
import fallomfallom.init(api_key="your-fallom-api-key")from anthropic import Anthropicclient = Anthropic()fallom.trace.set_session("my-agent", "session-123")with client.messages.stream( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{"role": "user", "content": "Write a poem."}]) as stream: for text in stream.text_stream: print(text, end="")