May 19, 2024, 8:37 p.m. | /u/funbike

Ai Prompt Programming www.reddit.com

I'm contemplating using an alternative to tools/function-calling feature of LLM APIs,
and instead use Python code blocking.

Seeking feedback.

EXAMPLE: (tested)

System prompt:

To call a function, respond to a user message with a code block like this:

```python tool_calls
value1 = function1_to_call('arg1')
value2 = function2_to_call('arg2', value1)
return value2
```

The user will reply with a user message containing Python data:

```python tool_call_content
"value2's value"
```

Here are some functions that can be called:

```python tools
def get_location() -> str: …

aipromptprogramming alternative apis block blocking call code example feature feedback function llm prompt python system prompt tools will

Senior Machine Learning Engineer

@ GPTZero | Toronto, Canada

ML/AI Engineer / NLP Expert - Custom LLM Development (x/f/m)

@ HelloBetter | Remote

Doctoral Researcher (m/f/div) in Automated Processing of Bioimages

@ Leibniz Institute for Natural Product Research and Infection Biology (Leibniz-HKI) | Jena

Seeking Developers and Engineers for AI T-Shirt Generator Project

@ Chevon Hicks | Remote

Senior Applied Data Scientist

@ dunnhumby | London

Principal Data Architect - Azure & Big Data

@ MGM Resorts International | Home Office - US, NV