mirascope
mirascope copied to clipboard
LLM abstractions that aren't obstructions
### Description Consider the following tool: ```python from mirascope.openai import OpenAITool from pydantic import Field class MyTool(OpenAITool): """This is the overall tool description of my tool that gets injected.""" foo:...
### Description Currently, we would do something like this: ```python from typing import Generator from mirascope.openai import ( OpenAICall, OpenAICallParams, OpenAICallResponseChunk, OpenAIToolStream, ) def print_book(title: str, author: str, description: str):...
### Description It should be possible to use the raw, original tool schema definition (i.e. not a function or BaseTool class but the raw JSON itself). This would: 1. Make...
### Question This is how we insert arbitrary variables into tool description from the [official OpenAI cookbook guide](https://cookbook.openai.com/examples/how_to_call_functions_with_chat_models): ```py tools = [ { "type": "function", "function": { "name": "ask_database", "description":...
### Description It looks like when given a single argument it always returns the input as a string instead of as a single-key dictionary. Ideally it would return the correct...
### Description Run the following code: ```py from typing import Literal from openai.types.chat import ChatCompletionMessageParam from mirascope.openai import OpenAICall, OpenAICallParams def get_current_weather( location: str, unit: Literal["celsius", "fahrenheit"] = "fahrenheit" ):...
### Description Right now users need to manually create the tools even though all of the information is generally already present in the tool. A method like `tool.message_param` would make...
### Description - The original implementation of `dump` only included a few fields, there are many more we should consider. - We should look into improving `dump` for chained prompts...
Marie Stephen Leo [posted about Mirascope on LinkedIn](https://www.linkedin.com/posts/marie-stephen-leo_generativeai-llm-nlp-activity-7197762887757541376-wqxZ?utm_source=share&utm_medium=member_desktop) and noted that it missed a single deep nested field in the third nested level of an NER task (and it looks...
### Description I would like to be able to load and write Mirascope objects directly to a file for analysis and processing in a very simple way. Here are a...