* Introduce project_personas table with foreign keys to projects and agent_personas * Add project_skills table with foreign key to projects and agent_skills * Include override boolean field in agent_persona_skills and project_skills * Update schema and migration files to reflect new tables and fields * Enhance CORS handling to reflect request origin
This commit is contained in:
@@ -422,6 +422,7 @@ func (t *AgentPersonasTool) RemovePersonaPart(ctx context.Context, _ *mcp.CallTo
|
||||
type AddPersonaSkillInput struct {
|
||||
PersonaID int64 `json:"persona_id" jsonschema:"persona id"`
|
||||
SkillID int64 `json:"skill_id" jsonschema:"agent skill id to link"`
|
||||
Override bool `json:"override,omitempty" jsonschema:"replace a project skill with the same name during world-model assembly"`
|
||||
}
|
||||
|
||||
type AddPersonaSkillOutput struct {
|
||||
@@ -430,7 +431,7 @@ type AddPersonaSkillOutput struct {
|
||||
}
|
||||
|
||||
func (t *AgentPersonasTool) AddPersonaSkill(ctx context.Context, _ *mcp.CallToolRequest, in AddPersonaSkillInput) (*mcp.CallToolResult, AddPersonaSkillOutput, error) {
|
||||
if err := t.store.AddPersonaSkill(ctx, in.PersonaID, in.SkillID); err != nil {
|
||||
if err := t.store.AddPersonaSkill(ctx, in.PersonaID, in.SkillID, in.Override); err != nil {
|
||||
return nil, AddPersonaSkillOutput{}, err
|
||||
}
|
||||
return nil, AddPersonaSkillOutput{PersonaID: in.PersonaID, SkillID: in.SkillID}, nil
|
||||
|
||||
Reference in New Issue
Block a user