retro_chat_mock: Mock chat constructor

View source: R/retro_chat_mock.R

retro_chat_mockR Documentation

Mock chat constructor

Description

Create an 'ellmer' chat object that does not authenticate or connect to any real provider. Useful for testing and development without network access.

Usage

retro_chat_mock()

Details

The returned chat supports registering tools, setting system prompts, and all other local operations. It will error only if you attempt to send a message to the model.

Value

An 'ellmer' chat object.

See Also

Other chats: retro_chat_replay_simulation()

Examples

  chat <- retro_chat_mock()
  chat$get_system_prompt()

retroglyph documentation built on Dec. 4, 2026, 1:07 a.m.