refactor: AgentContext extends ModeratorContext, remove redundant fields #341
Reference in New Issue
Block a user
Delete Branch "refactor/simplify-agent-context"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
AgentContext = ModeratorContext & { threadId, role, store, workflow }Removed redundant
systemPrompt,prompt,history.Migration
ctx.promptctx.start.promptctx.historyctx.stepsctx.systemPromptctx.workflow.roles[ctx.role].systemPromptChanges
uwf-agent-kit/types.ts— AgentContext extends ModeratorContextuwf-agent-kit/context.ts— build new shapeuwf-agent-hermes/hermes.ts— use new field pathsscripts/mock-agent.ts— sameLGTM ✅ AgentContext 继承 ModeratorContext,消除冗余字段,结构统一。