54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
name: "Review a Schematic with an LLM"
|
|
description: >
|
|
Use an LLM to review a schematic design.
|
|
|
|
Note: You must set an environment variable with an API key for the LLM. This
|
|
must be `OPENAI_API_KEY` for GPT models, or `ANTHROPIC_API_KEY` for Claude
|
|
models.
|
|
|
|
inputs:
|
|
json_path:
|
|
description: "Path to the JSON file containing the schematic design."
|
|
required: true
|
|
|
|
svg_path:
|
|
description: "Path to the SVG file containing the schematic design."
|
|
required: true
|
|
|
|
netlist_path:
|
|
description: >
|
|
Path to the netlist file. Can be set to an empty file to review without
|
|
netlist.
|
|
required: true
|
|
|
|
output_path:
|
|
description: "Path to the output file."
|
|
required: true
|
|
|
|
model:
|
|
description: "The model used by the action."
|
|
required: false
|
|
default: "__default__"
|
|
|
|
log_level:
|
|
description: The log level used by the action. Used for debugging.
|
|
required: false
|
|
default: "INFO"
|
|
|
|
runs:
|
|
using: "docker"
|
|
image: "Dockerfile"
|
|
args:
|
|
- "--json-path"
|
|
- "${{ github.workspace }}/${{ inputs.json_path }}"
|
|
- "--svg-path"
|
|
- "${{ github.workspace }}/${{ inputs.svg_path }}"
|
|
- "--netlist-path"
|
|
- "${{ github.workspace }}/${{ inputs.netlist_path }}"
|
|
- "--output-path"
|
|
- "${{ github.workspace }}/${{ inputs.output_path }}"
|
|
- "--model"
|
|
- "${{ inputs.model }}"
|
|
- "--log-level"
|
|
- "${{ inputs.log_level }}"
|