Version 4.0 Released #76

Closed
opened 2025-10-14 17:32:35 -06:00 by navan · 0 comments
Owner

Originally created by @keiffster on 1/11/2020

New in 4.0

Baseline Release

Version 4.0 is a baseline release to prepare the ground work for a number of major changes in 2020.
It includes the addition of over 2000 unit tests which brings coverage up to 99% of the core system and 96% overall
Along with the unit tests, we have refactored major parts of the code base for ease of use, performance and long term
sustainability. A number of defects have also been corrected due to the addition of the unit tests

Configuration Changes

The major change is in the configuration file struture. This has been refactored and while a breaking change, its
structural, rather than content and aligns the configuration files with the internal structure of the bot architecture.
The main change is the inclusion of brains and bots contains, so a configuration file now looks like

console:
    bots:
      bot1:
        brains:
          brain1:
          brain2:
      bot2:
        brains:
        brain3

Fixing config files should be as simple as introducing the bots and brains elements and shifting bot and brain elements
a couple of tabs right

Embeddable Clients

The third major feature is a complete refresh of the embeddable client, which now provides 3 simple ways to add a bot
to you Python app in as little as 2 lines of code

from programy.clients.embed.basic import EmbeddedBasicBot

my_bot = EmbeddedBasicBot()

print("Response = %s" % my_bot.ask_question("Hello"))

For more information on this feature, see Embedded Bots

Unified Naming

A number of configuration items have had their names changed so that all variables use underscore '_' as a
space seperator rather than a mix of underscore and dash '-'. The list of changes re

  • default_userid
  • default_get
  • default_property
  • default_map
  • default_response
  • default_response_srai

The convention going forward is that all variables will use underscore '_' as a space seperator

*Originally created by @keiffster on 1/11/2020* ## New in 4.0 ### Baseline Release Version 4.0 is a baseline release to prepare the ground work for a number of major changes in 2020. It includes the addition of over 2000 unit tests which brings coverage up to 99% of the core system and 96% overall Along with the unit tests, we have refactored major parts of the code base for ease of use, performance and long term sustainability. A number of defects have also been corrected due to the addition of the unit tests ### Configuration Changes The major change is in the configuration file struture. This has been refactored and while a breaking change, its structural, rather than content and aligns the configuration files with the internal structure of the bot architecture. The main change is the inclusion of brains and bots contains, so a configuration file now looks like ```yaml console: bots: bot1: brains: brain1: brain2: bot2: brains: brain3 ``` Fixing config files should be as simple as introducing the bots and brains elements and shifting bot and brain elements a couple of tabs right ### Embeddable Clients The third major feature is a complete refresh of the embeddable client, which now provides 3 simple ways to add a bot to you Python app in as little as 2 lines of code ```python from programy.clients.embed.basic import EmbeddedBasicBot my_bot = EmbeddedBasicBot() print("Response = %s" % my_bot.ask_question("Hello")) ``` For more information on this feature, see [Embedded Bots](https://github.com/keiffster/program-y/wiki/Tutorial-Embedded-Bots) ### Unified Naming A number of configuration items have had their names changed so that all variables use underscore '_' as a space seperator rather than a mix of underscore and dash '-'. The list of changes re * default_userid * default_get * default_property * default_map * default_response * default_response_srai The convention going forward is that all variables will use underscore '_' as a space seperator
navan 2025-10-14 17:32:36 -06:00
  • closed this issue
  • added the
    News
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/program-y#76
No description provided.