Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refine conversation states #245

Merged

Conversation

iceljc
Copy link
Collaborator

@iceljc iceljc commented Jan 1, 2024

  1. Refine conversation states by tracking message history.

var convDir = FindConversationDirectory(conversationId);
if (!string.IsNullOrEmpty(convDir))
{
var stateDir = Path.Combine(convDir, "state.dict");
curStates = CollectConversationStates(stateDir);
var stateFile = Path.Combine(convDir, "state.dict");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we rename to state.json?

@@ -15,6 +15,13 @@ public AgentController(IAgentService agentService, IServiceProvider services)
_services = services;
}

[HttpGet("/test")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the testing code?

@Oceania2018 Oceania2018 merged commit ea9ae4d into SciSharp:master Jan 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants