Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add object converter #1113

Merged
merged 1 commit into from
Feb 18, 2024
Merged

Add object converter #1113

merged 1 commit into from
Feb 18, 2024

Conversation

Josh-XT
Copy link
Owner

@Josh-XT Josh-XT commented Feb 18, 2024

Add object converter

  • Modified tooling from my convertanything module and adapted to AGiXT as a command that can be used in chains or by the LLMs. It can convert any unstructured string of information into a pydantic model.
  • Add Convert to JSON prompt template. See template below.
**Act as a JSON converter that converts any text into the desired JSON format based on the schema provided. Respond only with JSON in a properly formatted markdown code block, no explanations.**

**Reformat the following information into a structured format according to the schema provided:**

## Information:
{user_input}

## Schema:
{schema}

JSON Structured Output:

@Josh-XT Josh-XT merged commit 282cca0 into main Feb 18, 2024
2 checks passed
@Josh-XT Josh-XT deleted the Add-object-converter branch February 18, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant