Skip to main content
Filter by
Sorted by
Tagged with
2 votes
3 answers
277 views

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)'...
Bagheri's user avatar
  • 39
-1 votes
1 answer
86 views

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 ...
mollpete's user avatar
0 votes
1 answer
159 views

function call not OK @GetMapping(value = "/tools", produces = MediaType.TEXT_EVENT_STREAM_VALUE) public Flux<String> chat() { System.out.println("tools..."); ...
Qiu8Boy's user avatar
0 votes
1 answer
62 views

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(...
502E532E's user avatar
  • 581
0 votes
2 answers
92 views

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 ...
paulo sampieri's user avatar
3 votes
0 answers
264 views

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 ...
Alejandro De Castro's user avatar
2 votes
1 answer
432 views

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 ...
Accipiter Nova's user avatar
3 votes
0 answers
514 views

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 ...
Anna Bozhenko's user avatar
8 votes
2 answers
2k views

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 ...
Neha's user avatar
  • 179
1 vote
1 answer
98 views

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 ...
Anton Marks's user avatar
0 votes
1 answer
85 views

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. ...
Vikryansh Singh's user avatar
1 vote
1 answer
121 views

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 ? $...
Taher Anaya's user avatar
0 votes
1 answer
100 views

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 = [...
chenkun's user avatar
  • 75
0 votes
3 answers
121 views

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 ...
Ted M.'s user avatar
  • 412
2 votes
0 answers
69 views

Recently, I have been working on inserting a function call into an existing smart contract function at the assembly level. I successfully inserted the function call (b) into an existing function (a), ...
pypy233's user avatar
  • 21
2 votes
1 answer
59 views

Function.prototype.call = function(point,...arg){ console.log('ok'); const key = Symbol('key') point[key] = this const data = point[key](...arg) delete point[key] return data } ...
user25428597's user avatar
1 vote
1 answer
165 views

Context Accessing a document in an iframe from a parent window and accessing a parent window's document from an iframe is possible without CORS or when each iframe's document's origin is the same as ...
user5588495's user avatar
0 votes
0 answers
59 views

I saw a project on GitHub that involved Python code to call functions defined in C++. Strangely, the function name defined in C++ is A, but it can be called through the name B in Python, where A and B ...
DEAD SUMMER's user avatar
2 votes
2 answers
365 views

For purely educational purposes, I am trying to write examples with the "Constructing Function Calls builtins" (https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Constructing-Calls.html#index-...
mastupristi's user avatar
  • 1,598
1 vote
0 answers
114 views

let assume we have a structure defined in local types: struct Human { char* name; int age; double height; }; and the prototype of the function i need to call: const Human**__fastcall ...
noone's user avatar
  • 11
0 votes
1 answer
55 views

I'm trying to solve for a vector k (reaction constant) that gets updated every time T is updated, and that new value of k is used to find the next T and so on. But the first time T is called for each ...
atoa's user avatar
  • 19
-1 votes
2 answers
204 views

I have a Qt project Got this error in file "lab2.h" next to the line with the include directive (signed next to it) #ifndef LAB2_H #define LAB2_H #include <QWidget> #include <...
МАРГОША ТВ's user avatar
0 votes
1 answer
106 views

import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.15 Window { width: 640 height: 480 visible: true title: qsTr("Hello World") property int anum: ...
段回洋's user avatar
0 votes
2 answers
167 views

So I'm pretty new to python so this could be an easy issue that I just don't understand what's going on here. But essentially I have a dropdown that allows you to choose a character, and then display ...
skiboy108's user avatar
3 votes
1 answer
103 views

For disclosure, I'm rather new to Haskell and am figuring out the syntax. Let me illustrate my question with an example. Let's say you have a function which returns a tuple of several values or a data ...
Glenn Jansson's user avatar
0 votes
0 answers
27 views

I have a set of Accordion(s) (better say, a set of expandable sections in a single page), each of one could be identified by a custom ID (as side note, is a Liferay 7.4 custom fragment). I'd need to ...
Luca Detomi's user avatar
  • 5,766
0 votes
0 answers
45 views

this is for particular index i.e.(index == 2). first time when page loads then it will works normally(function calls itself only one time). when I come back to same option by changing the select ...
SaG RV's user avatar
  • 1
0 votes
1 answer
529 views

I am currently using the @azure/openai npm package for Node.js to interact with the GPT-4 model. I have noticed that the toolCalls in the response are empty, even though I have included tools in my ...
emye's user avatar
  • 11
0 votes
1 answer
86 views

So if I have the following macros: Pmoney Psteel Ptitanium Pplant Ppower Pheat and I would like to create a new function/Macro that will run all of the above at once. I understand there is a Call ...
Theo Millington's user avatar
1 vote
0 answers
816 views

I have a question for folks who have already tried out OpenAI function calling with Langchain. I am not getting a consistent response from Langchain. Sometimes I get the below response, where the ...
Rito's user avatar
  • 3,328
1 vote
1 answer
1k views

I am trying to use function calling of openai. However, it throws an error. The code is given below: import openai def fetch_weather_with_openai(location, unit='celsius'): """ ...
user3104352's user avatar
  • 1,130
0 votes
0 answers
242 views

I have been trying to set up a 0x9A, absolute far call using MASM syntax in 32 bit mode and despite my code assembling succesfully, the result will always be call far 0:0. The valid MASM syntax call ...
Theodoros Mpalis's user avatar
0 votes
1 answer
803 views

I am working on a WPF project, and I implemented the MVC -Pattern for my application . So I have the MainWindow.xaml and MainWindow.xaml.cs as the View, and then a Controller and a Model class (first ...
Michael W.'s user avatar
1 vote
1 answer
90 views

I have a dataframe and I want to fit a mixR model for each column and print the plot. The code without using function without any problem, but when it was called in a function, an error happened. I ...
Timon's user avatar
  • 327
0 votes
1 answer
671 views

Using function calling, 'openai' does not execute the function, but it prints the function with parameters. Please see below: I am using a local LLM (LLaMA 2) in Colaboratory. 'openai' version ...
SkyBest I's user avatar
0 votes
1 answer
48 views

my code is split into two pydev files. Functions.py and t12.py. My problem is that when I call the function and the for loop runs, the final value of the loop and the value I call from the t12 ...
HW19's user avatar
  • 25
0 votes
0 answers
23 views

start: mov $0, %eax jmp two one: mov $0x1234, %eax two: cmp $0x1234, %eax je done call one mov $10, %eax done: jmp done I have a doubt that when cmp in two is ...
astraltrinity's user avatar
0 votes
2 answers
163 views

Let's assume this function template: template <typename F> void foo(F&& f) { f("foo"); } void to_optimize() { foo([](std::string_view s) { std::cout << s <&...
Petr's user avatar
  • 63.6k
0 votes
1 answer
666 views

Let label1, label2 be two set of instructions both ending with a RET instruction, and such that label2 branches to label1 with a link. In other words, we have a code that looks like this (I will ...
lafinur's user avatar
  • 350
2 votes
0 answers
68 views

I try to call few shared object functions from Go. I don't want to write a C commented code to build a CGO interface for all functions. I write my shared object like that: #include <stdio.h> ...
MauriceLambert's user avatar
0 votes
1 answer
87 views

#include <stdio.h> int apple(int total, int ate); int main(void) { printf("If you eat %d out of %d apples, there will be %d left.\n", 4, 10, apple(10, 4)); ...
Bunzz's user avatar
  • 11
-2 votes
1 answer
625 views

This issue looks like known one. but i have no any const in types. What I am missing? I have the following code: class PlanForBlock { public: void registerExtraIterator(DummyLoadIterator *...
YAKOVM's user avatar
  • 10.3k
-2 votes
2 answers
94 views

I am learning how to function return a string in C. It has 2 ways: use static char array or use malloc. I have some experiments with source code be like: #include <stdio.h> #include <stdlib.h&...
Hai Pham's user avatar
0 votes
2 answers
122 views

I know this is one of those "undefined behavior" questions, but a current cppreference page on the subject (as of C++23) itself gives two example's that I'm having trouble understanding from ...
mishar's user avatar
  • 455
1 vote
2 answers
146 views

I am trying to insert/delete the first element in a linked list but in case of insertion it is not adding it and in case of deletion it starts a infinite chain, I am unable to identify the issue. I am ...
X_Abhishek_X's user avatar
1 vote
2 answers
331 views

I'm trying to develop a small console program that spits a string into separate words (i.e. tokens). Most of the program is working but I'm having a problem with the strtok() function. I have reviewed ...
Stuart's user avatar
  • 133
1 vote
2 answers
92 views

I need to use Prolog to bind a letter grade for a given integer grade value (>= 90 is a, >= 80 is b, and so on.) I am trying to write a function such as this: evaluate_grade( X , F ) :- X \&...
Matt 's user avatar
  • 29
0 votes
1 answer
279 views

I'm a little stuck at the moment. I try to use excel data to import and move/resize shapes into visio. I have a running gui to let the user select all the things he need, but the code did not run ...
Talan Trenor's user avatar
3 votes
1 answer
266 views

With a function signature such as: pub fn hash(input: &[u8]) -> [u8; 32] how do those 32 bytes get passed to the calling function? (Before optimisation, which might place some parts in ...
fadedbee's user avatar
  • 45.2k
1 vote
3 answers
160 views

I am reading the book of CPP-Concurrency-In-Action-2ed-2019. In chapter 5.3.2, the author gives a simple example: #include <iostream> void foo(int a, int b) { std::cout << a << &...
f1msch's user avatar
  • 661

1
2 3 4 5
24