summaryrefslogtreecommitdiffstats
path: root/src/config/session.rs
AgeCommit message (Collapse)AuthorLines
2024-09-08feat: save rag in YAML instead of bin (#848)sigoden-2/+2
2024-08-30feat: save temp session with `temp-<timestamp>` if `save_session: true` (#811)sigoden-7/+7
2024-08-30feat: replace roles.yaml with roles/<name>.md (#810)sigoden-17/+13
2024-07-30refactor: agent instructions (#764)sigoden-0/+4
- replace `__TOOLS__` with `{{__tools__}}` - after `.clear messages`, update system message of agent session - show interpolated instructions in agent info
2024-07-13refactor: improve compressing session (#710)sigoden-3/+19
2024-07-09feat: support agent variables (#692)sigoden-8/+2
2024-07-05feat: enhenced flexibility for use tools (#688)sigoden-12/+12
2024-06-27refactor: saved messages ignore embedding context (#659)sigoden-3/+1
2024-06-25refactor: compress session (#649)sigoden-5/+3
1. no require compress_threshold >= 1000 2. no compressing in middle of function calling
2024-06-22refactor: rename bot to agent (#628)sigoden-2/+2
2024-06-17refactor: minor improvement (#611)sigoden-3/+5
2024-06-17feat: add `.regenerate` repl command (#610)sigoden-20/+26
2024-06-17refactor: make `set max_output_tokens` work for role/session/bot (#609)sigoden-0/+4
2024-06-17feat: add `.continue` repl command (#608)sigoden-13/+27
2024-06-17feat: add `.edit session` repl command (#606)sigoden-14/+11
2024-06-14refactor: add/modify rag-related config (#599)sigoden-1/+1
2024-06-13feat: add rag and bot related cli options (#595)sigoden-3/+0
2024-06-12refactor: 'temp' can not be used as name of saved session (#591)sigoden-2/+10
2024-06-12refactor: rename `selected_functions` to `functions_filter` (#587)sigoden-11/+11
2024-06-11refactor: rename `function_matcher` to `selected_functions` (#583)sigoden-11/+11
2024-06-11refactor: adjust config methods order (#581)sigoden-8/+8
2024-06-11feat: support bot (#579)sigoden-91/+126
* feat: support bots * refactor with RoleLike * improve exiting session * make bot works with rag * refactor repl assert state * add bot banner * repl complete bots according bots.txt * fix on windows * remove threadpool executing function callings * adjust repl left_prompt * move bot config to global config.yaml * `.bot` throw err if funciton callings is not configured
2024-06-06refactor: config refinement (#570)sigoden-3/+32
2024-06-05feat: support RAG (#560)sigoden-1/+1
* feat: support RAG * support more embeddings models and implement concurrent embedding api * show the progress of addings paths * ignore embedding context when saving message * embedding model max_chunk_size => default_chunk_size * support pdf and pandoc formats (docx, epub, ipynb)
2024-05-29refactor: `temp` session ignore `save_session` (#547)sigoden-1/+14
2024-05-22refactor: rename `function_filter` to `function_matcher` (#535)sigoden-11/+11
2024-05-18feat: support function calling (#514)sigoden-27/+53
* feat: support function calling * fix on Windows OS * implement multi-steps function calling * fix on Windows OS * add error for client not support function calling * refactor message data structure and make claude client supporting function calling * support reuse previous call results * improve error handling for function calling * use prefix `may_` as indicator for `execute` type fucntions
2024-05-14refactor: config::Input (#503)sigoden-5/+4
2024-05-09feat: enhence roles with messages (#495)sigoden-2/+2
2024-05-02chore: fix typos (#476)Tatsuya Kyushima-2/+2
2024-04-24feat: support customizing `top_p` parameter (#434)sigoden-0/+19
2024-03-27feat: add repl command `.save session` (#382)sigoden-3/+0
2024-03-27refactor: config add in_repl property (#381)sigoden-1/+1
2024-03-27feat: `save_session` config item can be null (#380)sigoden-13/+12
2024-03-27fix: not dirty session when updating properties (#379)sigoden-6/+19
2024-03-27feat: add sepereate `save_session` config item to session (#377)sigoden-5/+19
2024-03-17refactor: remove role field from session struct (#356)sigoden-18/+4
2024-03-06refactor: rename model's `max_tokens` to `max_input_tokens` (#339)sigoden-7/+7
BREAKING CHANGE: rename model's `max_tokens` to `max_input_tokens`
2024-03-04feat: compress session automaticlly (#333)sigoden-13/+44
* feat: compress session automaticlly * non-block * update field description * set compress_threshold * update session::clear_messages * able to override session compress_threshold * enable compress_threshold by default * make session compress_threshold optional
2024-03-03feat: add `.clear messages` to clear session messages (#332)sigoden-0/+9
2023-12-24feat: custom REPL prompt (#283)sigoden-0/+4
2023-11-27feat: state-aware completer (#251)sigoden-0/+2
2023-11-27feat: support vision (#249)sigoden-12/+24
* feat: support vision * clippy * implement vision * resolve data url to local file * add model openai:gpt-4-vision-preview * use newline to concate embeded text files * set max_tokens for gpt-4-vision-preview
2023-11-03refactor: improve code quanity (#203)sigoden-15/+16
- update field name of ModelInfo - rename ModelInfo to Model
2023-11-02refactor: improve repl completer (#199)sigoden-3/+3
2023-11-02refactor: improve code quanity (#197)sigoden-1/+1
- move model_info.rs/message.rs to clients/ - rename SharedConfig to GlobalConfig
2023-11-02refactor: improve code quanity (#196)sigoden-36/+39
- rewrite Repl, remove ReplHandler - move ReplyStreamHandler to repl/ and rename it to ReplyHandler - deprecate utils::print_now - refactor session info
2023-11-01chore: spellcheck typossigoden-1/+1
2023-11-01refactor: improve code quanity (#194)sigoden-31/+89
- extends ModelInfo for tokens calculating - refactor config/session.rs, improve export, render, getter/setter - modify main.rs, allow --model override session.model
2023-10-30feat: add `.info role` and `.info session` (#183)sigoden-1/+36