Sha256: cd64fe1ad025d244131859b53ac00fbbc7b702c94664036e7334e0b67641e405

Contents?: true

Size: 365 Bytes

Versions: 3

Compression:

Stored size: 365 Bytes

Contents

require_relative "../lib/bristow"

Bristow.configure do |config|
    config.default_model = 'gpt-4o-mini'
end

sydney = Bristow::Agent.new(
  name: 'Sydney',
  description: 'Agent for telling spy stories',
  system_message: 'Given a topic, you will tell a brief spy story',
)

sydney.chat([{role: 'user', content: 'Cold war era Berlin'}]) do |part|
  print part
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bristow-0.2.1 examples/basic_agent.rb
bristow-0.2.0 examples/basic_agent.rb
bristow-0.1.0 examples/basic_agent.rb