Skip to main content

ShareGPTDataCollector

init

record

Inject an agent into the data collector.

convert

Convert the collected data into a dictionary.

llm_convert

Convert collected data using an LLM schema converter. Parameters:
  • converter (Optional[OpenAISchemaConverter], optional): The converter to use. (default: :obj:OpenAISchemaConverter)
  • prompt (Optional[str], optional): Prompt to guide the conversion. (default: :obj:DEFAULT_CONVERTER_PROMPTS)
Returns: Dict[str, str]: The converted data.

to_sharegpt_conversation