Skip to content

Commit 57478f7

Browse files
authored
feat: replace title generation logic in code interpreter with tool argument #169 #175 (#176)
1 parent 6debf7c commit 57478f7

File tree

17 files changed

+32
-605
lines changed

17 files changed

+32
-605
lines changed

.ort.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ resolutions:
7878
- message: ".*PyPI::opentelemetry-proto:1\\..*"
7979
reason: "CANT_FIX_EXCEPTION"
8080
comment: "Apache License 2.0: https://github.com/open-telemetry/opentelemetry-python/blob/main/LICENSE"
81-
- message: ".*PyPI::kaleido:1\\..*"
82-
reason: "CANT_FIX_EXCEPTION"
83-
comment: "MIT License: https://github.com/plotly/Kaleido/blob/master/LICENSE"
8481
- message: ".*PyPI::rich-rst:1\\..*"
8582
reason: "CANT_FIX_EXCEPTION"
8683
comment: "MIT License: https://github.com/wasi-master/rich-rst/blob/main/LICENSE"
@@ -96,9 +93,6 @@ resolutions:
9693
- message: ".*PyPI::keyring:25\\..*"
9794
reason: "CANT_FIX_EXCEPTION"
9895
comment: "MIT License: https://pypi.org/project/keyring/"
99-
- message: ".*PyPI::choreographer:1\\..*"
100-
reason: "CANT_FIX_EXCEPTION"
101-
comment: "MIT License: https://github.com/plotly/choreographer/blob/main/LICENSE.md"
10296
- message: ".*PyPI::referencing:0\\..*"
10397
reason: "CANT_FIX_EXCEPTION"
10498
comment: "MIT License: https://github.com/python-jsonschema/referencing?tab=MIT-1-ov-file"
@@ -197,6 +191,3 @@ resolutions:
197191
- message: ".*PyPI::python-dateutil:2\\..*"
198192
reason: "CANT_FIX_EXCEPTION"
199193
comment: "Dual (APL-2.0 and BSD-2): https://github.com/dateutil/dateutil/blob/master/LICENSE"
200-
201-
202-

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ FROM python:3.13-alpine AS runtime
1818

1919
RUN apk update && apk upgrade --no-cache libcrypto3 libssl3 libexpat zlib
2020

21-
RUN apk add --no-cache chromium nss freetype harfbuzz ttf-freefont libstdc++
22-
2321
WORKDIR /app
2422

2523
ENV PYTHONDONTWRITEBYTECODE=1 \

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ your gateways or downstream services expect.
8080
| `LOG_FORMAT` | See below ¹ | No | Custom logging format string |
8181
| `LOG_LEVEL` | `INFO` | No | Root logger level (all loggers except quickapp) |
8282
| `QUICKAPP_LOG_LEVEL` | `INFO` | No | Log level for quickapp loggers |
83-
| `PLOTLY_IMAGE_CONVERSION_LOG_LEVEL` | `WARN` | No | Log level for kaleido/choreographer (plotly image conversion) |
8483
| `LOG_MULTILINE_LOG_ENABLED` | `false` | No | Enable multiline log mode |
8584
| **Agent** | | | |
8685
| `DEFAULT_AGENT_MAX_ITERATIONS` | `15` | No | Maximum number of orchestrator iterations (`-1` for infinite) |
@@ -92,7 +91,6 @@ your gateways or downstream services expect.
9291
| `PY_INTERPRETER_URL` | *(falls back to DIAL_URL)* | No | URL of the PyInterpreter service |
9392
| `PY_INTERPRETER_API_KEY` || No | API key for local-run PyInterpreter |
9493
| `PY_INTERPRETER_DEFAULT_SESSION_ID` || No | Default session ID for the PyInterpreter |
95-
| `PY_INTERPRETER_ADDITIONAL_HANDLING_MODEL` | `gpt-4o-mini-2024-07-18` | No | Model for additional handling in PyInterpreter |
9694
| `PY_INTERPRETER_CLIENT_TIMEOUT` | `60.0` | No | Timeout (seconds) for PyInterpreter client requests |
9795
| `PY_INTERPRETER_CLIENT_MAX_RETRIES` | `3` | No | Max retries for PyInterpreter client requests |
9896
| **Templates** | | | |

config/predefined/tool/py_interpreter.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@
2323
}
2424
}
2525
},
26+
"display_title": {
27+
"type": "string",
28+
"description": "Title for display outputs (charts, images) produced by this code. If omitted, a generic name is used. Use this only when generating visual outputs to provide a more descriptive title for image or chart.",
29+
"display": {
30+
"stage": {
31+
"ignore": true
32+
}
33+
}
34+
},
2635
"code": {
2736
"type": "string",
2837
"description": "Python code to execute. Required parameter that contains the Python 3.11 code which will run in the Jupyter Kernel environment.",
@@ -102,4 +111,4 @@
102111
}
103112
]
104113
}
105-
}
114+
}

0 commit comments

Comments
 (0)