all AI news
My alternative to function-calling.
May 19, 2024, 8:37 p.m. | /u/funbike
Ai Prompt Programming www.reddit.com
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
More from www.reddit.com / Ai Prompt Programming
I made a camera that uses AI to turn photos to art
4 days, 4 hours ago |
www.reddit.com
Building an Agent for Data Visualization (Plotly)
4 days, 11 hours ago |
www.reddit.com
AI learns a trick in a video game to get infinite points
6 days, 19 hours ago |
www.reddit.com
Jobs in AI, ML, Big Data
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