xia_gpt_prompts.actor.GptActor
- class xia_gpt_prompts.actor.GptActor(name: Optional[str] = None, **kwargs)
Bases:
Actor
- __init__(name: Optional[str] = None, **kwargs)
Methods
__init__
([name])evaluate_mission
(profile, request[, budget])Evaluate work to see we could take the mission or not
execute_mission
(profile, request)Execute the mission
- evaluate_mission(profile: str, request: str, budget: Optional[float] = None) bool
Evaluate work to see we could take the mission or not
- Parameters
profile – The profile needed
request – request to be done
budget – whether the budget could cover the cost
- Returns
True if accept mission
- async execute_mission(profile: str, request: str) dict
Execute the mission
- Parameters
profile – The profile needed
request – request to be done
- Returns
A dictionary about the run result