v0.4.0-dev1
- done a lot of experiments about
meta-prompton agent level reasoning - add
MossGhostand deprecateMossAgent, make the logic much more simple and clear. - build
PyEditorAgentand test about modify existing modules with code-driven tools. - refact
ghostos.prompteraboutPromptObjectModel. - move
loop_session_eventandhandle_callerstoSessionhelping us to understand the logic. - llm services support
siliconflowandaliyun - modify a lot of methods and functions names, make it more clear, at least to me
- add
request_timeoutfor stream first token - rename
TaskflowtoMindflow, which is the origin name of it. - change
FunctionCaller.idtoFunctionCaller.call_idand cause a lot of troubles. Hope worth it. - develop
pyeditormodule and test baseline cases. - move
MossActiontoghostos.abcdfor other agents. - develop
notebooklibrary for some memory-related tests. - implements
approvefeature for dangerous agent. - add
safe_modeconcepts forapprovefeature. - fix a lots of annoying issues of
chat_with_ghostpage. - refact the way to browse the streamlit web agent, make the pages switchable. I'm wrong about how to switch pages.
- add
ghostos.facadefor future encapsule - remove some useless expired code with heart break.
v0.4.0-dev0
Features:
- Restore the feature
functional tokenfor models that do not support function call.- add xml functional token pipe to parse output message chunks, generate
FunctionCallerby functional tokens. - OpenAIAdapter now support functional token instructions and output parser.
- add xml functional token pipe to parse output message chunks, generate
deepseek-reasonernow support functional token, so it can use MOSS protocol to execute python code.- support
last_message_shall_be_assistant_or_userfeature. - support
support_functional_tokensfeature.
- support
- Session add
respond_buffermethod, send messages while saving, in case responding message betweenfunction callandfunction outputwhich many models not support. - Add
Replierlibrary for agent directly reply in the generated MOSS code.
Test cases:
ghostos web ghostos.demo.test_agents.deepseek_chat_func_tokensghostos web ghostos.demo.test_agents.deepseek_chat_r1_func_tokens
Small changes:
- move
ModelConf.use_toolstoCompatible.function_call_use_tool. - add more options to llms
Compatible, to compatible with the shitty features of various models. - rename
ghostos.core.message.pipeline.pipinefunction torun_pipeline - rename
MossAction.unmarshal_argumentstoMossAction.unmarshal_code - streamlit app module
promptnow display functional tokens info about prompt.
Breaking Changes:
- rename MossAgent attribute
instructionstoinstruction ghostos webnow do not open browser as default (set streamlit app optionheadlessto false as default)
Bug fixes:
- fix the
OpenAIAdapterparsed prompt is not the same with the saved prompt.