1,152 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
4
votes
2
answers
244
views
Unexpected conversion from pointer to object during function call
This piece of code is a synthetic example extracted from a real world app.
This code doesn't make much sense, its only purpose is illustration and everything that is not relevant has been stripped.
#...
2
votes
3
answers
281
views
Why void() redefines a function in C++?
Given this function:
int f() {return 10;}
void(f()) defines a void f() and doesn't compile with the following error:
'void f(void)': overloaded function differs only by return type from 'int f(void)'...
-1
votes
1
answer
89
views
Node / express / ejs / Uncaught SyntaxError: missing ] after element list
I'm running a express server and render a list.
This is the code of the route:
try {
let result = await servCollections.prepareDataForListCollections();
let colls = result.data;
let ...
0
votes
1
answer
185
views
In Spring AI version 1.0.0-M6, the stream() method fails to trigger function calls
function call not OK
@GetMapping(value = "/tools", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
public Flux<String> chat() {
System.out.println("tools...");
...
0
votes
1
answer
63
views
Test event handler registration using pytest
Consider a module that allows to register event handlers and fires them at some condition:
# mymodule/myfile.py
_event_handlers = []
def register_event_handler(handler):
_event_handlers.append(...
0
votes
2
answers
93
views
How to return the COUNT of two different parameters?
I'm trying to return how many 'males' or 'females' are counted in each specific event for the products brand name column.
I tried to use subqueries and use the same syntax for both genders. Since I ...
3
votes
0
answers
282
views
File Search tool stops working when I enable custom function calling
I'm building a chatbot using OpenAI's Assistant (beta) and want to combine:
File Search – so the assistant can retrieve information from my uploaded PDF/manual (stored in a vector store).
Function ...
2
votes
1
answer
468
views
What is the better way to pass a hashmap as Argument?
Currently learning zig, but I am stuck with a problem about passing a hashmap into a fucntion. Although I have a working solution, I am not satisfied with using the anytype keyword, and I am seeking ...
3
votes
0
answers
532
views
Vertex AI Function Calling (using response)
I need to implement a chatbot that uses helpful functions for calling to interact with the database. This is a sandbox task from the laboratory
I have a problem sending the model a ready API response ...
8
votes
2
answers
2k
views
Llama3.2 fails to respond to simple text inputs when bounded with tool calling on LangGraph
I am following along a LangChain tutorial for LangGraph. They are using OpenAI models in the tutorial. However, I want to use my local Ollama models. I am using Llama 3.2 as that supports tool ...
1
vote
1
answer
101
views
Why is my Apps Script Trigger Not Working when it works manually?
I am trying to rename file names in a google drive folder as they appear.
It works completely fine when I run this manually but when the automatic trigger is triggered, it fails every time.
Manually ...
0
votes
1
answer
85
views
a float function returning 1.#QUAN0 instead of the actual values
I have written this program to give me the value of i exposed to the power of j using recursion. As I am a student, practicing different methods of solving the same problem might be beneficial for me. ...
1
vote
1
answer
125
views
Why do I get a syntax error using the ternary operator with function calls?
I'm writing a code in SystemVerilog, and I'm trying to use the ternary operator to decide between two function calls. Here's my code:
module tb;
int a = 1, b = 4;
initial begin
b > a ? $...
0
votes
1
answer
109
views
How to query the vector database in LangChain AgentExecutor, invoice before summarizing the 'Final Answer' after all tools have been called?
How to query the vector database in LangChain AgentExecutor, invoice before summarizing the 'Final Answer' after all tools have been called?
LangChain AgentExecutor code:
llm = ChatOpenAI()
tools = [...
0
votes
3
answers
121
views
Convert a complex string representation of a list (containing tuples, which look like function calls) into a list
I am trying to create a fixture for unit testing. I retrieve data from an API and need data that looks like what I get from the API without making the call to the API. I need to create a number of ...