Skip to content

Conversation

@csansoon
Copy link
Contributor

First step of Improve Simulation Environment:

I'll create a new "Simulation Settings" attribute on Stream Manager. When resolving tools, if simulateToolCalls is enabled, the resolved tools will call our generation service instead of the actual tool. This way, everything still goes through the regular runDocumentAtCommit pipeline.

When storing DocumentLogs, the simulationSettings attribute will be stored into the log, so that the UI will be able to display what tool responses are simulated and why.

An additional simulationDescription attribute is added to these Simulation Settings. This will act as a custom prompt to guide the simulation into a desired output. This can be used to test how the agent reacts in different situations.

When enabled, all tools will be simulated, except for:

  • Subagents
  • Some Latitude tools (think & todo)

  • New simulationSettings attribute in DocumentLogs ← You are HERE
  • Add Simulation Pipeline to runDocumentAtCommit and StreamManager, and replace the old runDocumentAtCommitWithAutoToolResponses
  • Add UI to show what tool calls have been generated by AI instead of the real output
  • Add "Simulation Description" parameter to Experiments

export type SimulationSettings = {
simulationDescription?: string // A prompt used to guide and generate the simulation result
simulateToolResponses?: boolean
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't put more things here. Export a new file if there is no one appropiate for this

@geclos
Copy link
Collaborator

geclos commented Oct 27, 2025

When storing DocumentLogs, the simulationSettings attribute will be stored into the log, so that the UI will be able to display what tool responses are simulated and why.

Can we avoid adding more stuff to logs model? We will be deprecating logs in favor our spans

@csansoon csansoon force-pushed the simulation-settings-logs branch from 1c4775b to c45ae96 Compare October 27, 2025 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants