Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
ToolSpec.java
Go to the documentation of this file.
1/*
2 * Ollama4j - Java library for interacting with Ollama server.
3 * Copyright (c) 2025 Amith Koujalgi and contributors.
4 *
5 * Licensed under the MIT License (the "License");
6 * you may not use this file except in compliance with the License.
7 *
8*/
9package io.github.ollama4j.tools.annotations;
10
11import io.github.ollama4j.Ollama;
12import java.lang.annotation.ElementType;
13import java.lang.annotation.Retention;
14import java.lang.annotation.RetentionPolicy;
15import java.lang.annotation.Target;
16
25@Target(ElementType.METHOD)
26@Retention(RetentionPolicy.RUNTIME)
27public @interface ToolSpec {
28
35 String name() default "";
36
43 String desc();
44}