Skip to content

Instantly share code, notes, and snippets.

@hugodutka
Created April 26, 2024 10:45
Show Gist options
  • Save hugodutka/004b8e90ca55e5c6f8f83e3eb603cf01 to your computer and use it in GitHub Desktop.
Save hugodutka/004b8e90ca55e5c6f8f83e3eb603cf01 to your computer and use it in GitHub Desktop.
[
{
"name": "ArticlesAnalysis",
"description": "Analyze a list of articles to solve the legal task.\nThe answer will always be returned in the following format:\n\n```md\n> [Quote from an article]\n[Analysis of the quote]\n\n> [Another quote from an article]\n[Analysis of the quote]\n\n...\n```\n\nThis function is not suitable for analyzing more than 5 articles at once. If you need to analyze more, consider splitting the task.\nIt is not suitable for tasks that require a different format of the answer.",
"parameters": {
"properties": {
"task": {
"description": "The legal task or subquestion from the master plan (by senior lawyer) for the AI Agent to solve by loading Articles and analyzing them.",
"title": "Task",
"type": "string"
},
"intent": {
"description": "The intent of the legal task at hand. How does fulfilling that task help answer the user's legal question?",
"title": "Intent",
"type": "string"
},
"articles": {
"description": "A list of top-level Article references in the form of Article 11, Article 23, .... Example of not allowed: Article 11(1). Article number ranges are fully expanded into singular values.",
"items": {
"type": "string"
},
"title": "Articles",
"type": "array"
},
"legal_question": {
"description": "The user's legal question",
"title": "Legal Question",
"type": "string"
}
},
"required": [
"articles",
"intent",
"legal_question",
"task"
],
"type": "object"
}
},
{
"name": "RecitalsAnalysis",
"description": "Analyze a list of recitals to solve the legal task.\nThe answer will always be returned in the following format:\n\n```md\n> [Quote from a recital]\n[Analysis of the quote]\n\n> [Another quote from a recital]\n[Analysis of the quote]\n\n...\n```\n\nThis function is not suitable for analyzing more than 5 recitals at once. If you need to analyze more, consider splitting the task.\nIt is not suitable for tasks that require a different format of the answer.",
"parameters": {
"properties": {
"task": {
"description": "The legal task or subquestion for the AI Agent to solve by loading Recitals and analyzing them",
"title": "Task",
"type": "string"
},
"intent": {
"description": "The intent of the legal task at hand. How does fulfilling that task help answer the user's legal question?",
"title": "Intent",
"type": "string"
},
"recitals": {
"description": "The Recitals in the form of Recital 1b, Recital 12, ...",
"items": {
"type": "string"
},
"title": "Recitals",
"type": "array"
},
"legal_question": {
"description": "The user's legal question",
"title": "Legal Question",
"type": "string"
}
},
"required": [
"intent",
"legal_question",
"recitals",
"task"
],
"type": "object"
}
},
{
"name": "AnnexAnalysis",
"description": "Analyze a list of annexes to solve the legal task.\nThe answer will always be returned in the following format:\n\n```md\n> [Quote from an annex]\n[Analysis of the quote]\n\n> [Another quote from an annex]\n[Analysis of the quote]\n\n...\n```\n\nThis function is not suitable for analyzing more than 5 annexes at once. If you need to analyze more, consider splitting the task.\nIt is not suitable for tasks that require a different format of the answer.",
"parameters": {
"properties": {
"task": {
"description": "The task for the AI Agent to solve",
"title": "Task",
"type": "string"
},
"annex_name": {
"description": "The name of the Annex to be loaded and analyzed. The name uses roman numerals like Annex IV.",
"title": "Annex Name",
"type": "string"
},
"legal_question": {
"description": "The user's legal question",
"title": "Legal Question",
"type": "string"
}
},
"required": [
"annex_name",
"legal_question",
"task"
],
"type": "object"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment