wa
This commit is contained in:
@@ -66,7 +66,7 @@ function generateRTSJSONSchema(gameState) {
|
||||
"description": "Current threat level"
|
||||
},
|
||||
"lastEvent": {
|
||||
"type": ["string", "null"],
|
||||
"type": "string",
|
||||
"description": "Description of the last significant event"
|
||||
},
|
||||
"casualties": {
|
||||
@@ -624,5 +624,7 @@ eventSource.on(event_types.CHAT_COMPLETION_SETTINGS_READY, (data) => {
|
||||
data.responseMimeType = "application/json";
|
||||
data.responseSchema = RTS_JSON_SCHEMA;
|
||||
console.log('RTS: Using structured output with dynamic schema');
|
||||
//dump the schema to console for debugging
|
||||
console.log('RTS: Current JSON schema:', JSON.stringify(RTS_JSON_SCHEMA, null, 2));
|
||||
}
|
||||
});
|
||||
@@ -334,7 +334,7 @@ class GameStateManager {
|
||||
turn: this.state.turn,
|
||||
currentZone: this.state.currentZone,
|
||||
threatLevel: this.state.threatLevel,
|
||||
lastEvent: this.state.lastEvent,
|
||||
...(this.state.lastEvent && { lastEvent: this.state.lastEvent }),
|
||||
|
||||
// Essential tracking data
|
||||
casualties: this.state.casualties,
|
||||
|
||||
Reference in New Issue
Block a user