CitizensFoundation / policy-synth

Policy Synth is a Typescript class library for creating multi-scale AI agent logic flows, API's and state of the art realtime web applications. The drive behind the project is to help governments and citizens make better decisions together by seamlessly integrating collective and artificial intelligence.
https://policy-synth.ai
MIT License
41 stars 5 forks source link

Refactor LLM model classes with a new typedef #16

Closed rbjarnason closed 5 months ago

rbjarnason commented 5 months ago

Task Description We want to create a new typedef called PsModelChatItem to replace {role:string,message:string}`,

Task Instructions

  1. Add new interface PsModelChatItem {role:string,message:string} to src/streamingLlms.d.ts
  2. Replace {role:string,message:string} with PsModelChatItem in src/models/baseChatModel.ts and src/models/openAiChat.ts, src/models/claudeOpusChat.ts and src/models/googleGeminiChat.ts
rbjarnason commented 5 months ago

2nd commit by Engineer: https://github.com/CitizensFoundation/policy-synth/commit/9882719771ca7486a97b77a5327a61bd5b6b34a4