Skip to content

gap Field handling in GapAgent #253

@muthukumaranR

Description

@muthukumaranR

Is your feature request related to a problem?

yes. Currently the planner uses the Field definitions and type hints to suggest values based on user query. As it stands, we use `str` for gap agent for "gap" input which may have undesired consequences.

Describe the solution you'd like

replace:
 : str = Field(..., description="Type of gap to investigate.")
with
 : GapTypes = Field(..., description="Type of gap to investigate.")

where GapTypes is a controlled Enum list, with expected gaps as input:

e.g. list


Knowledge Gap
Theoretical Gap
Methodological Gap
Population Gap
Geographical Gap

Describe alternatives you've considered

if it is intended to be free form, the description needs to be updated so the planner exactly knows what to fill in based on the request. Also, We may need to consider Default string - i.e. evidence gap

Additional context

user input (which may contain an explicit request for a gap analysis) -> planner -> a json with IO types filled that is used to initialize the agent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions